Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
I am trying to add locale in my custm visual.
I have implemeted in the following way:
In visual.ts file:
export class Visual implements IVisual {
private locale: string;
private localizationManager: ILocalizationManager;
constructor(options: VisualConstructorOptions) {
this.locale=options.host.locale;
this.localizationManager = this.host.createLocalizationManager();
this.formattingSettingsService = new FormattingSettingsService(this.localizationManager);
}
}
Capbailities.json for displayNameKey:
resources.rejson file
Did i miss anything in my code or in any file. Could you please help me?
Locale has not been changed in both package visual and developer visual
Thank You!
@v-viig @smpa01 @MaksimGaliev
Hi @AakashMarasini,
This looks to be correct, based on what you've provided. What version of powerbi-visuals-api and powerbi-visuals-tools are you using? Until recently, translations would not work unless you had packaged the visual. In recent builds of API/tools, they will work in the developer visual. Do you have the same problem in the packaged visual?
You won't need the localizationManager declared in the constructor for capabilities, as they should be supplied by Power BI. This is just needed for doing translations within your visual once it has initialized.
Also, presumably the locale for the environment you're viewing your Power BI report and visual in is jp-JP (either your language setting for Power BI Service, or Windows default language or Application language in Power BI Desktop)?
Regards,
Daniel
Proud to be a Super User!
On how to ask a technical question, if you really want an answer (courtesy of SQLBI)
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |