Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
AakashMarasini
Frequent Visitor

Localization Issue

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:

AakashMarasini_0-1694760151322.png

 

resources.rejson file 

AakashMarasini_1-1694760270489.png

 

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 


 

1 REPLY 1
dm-p
Super User
Super User

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





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.