<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Localization Issue in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Localization-Issue/m-p/3439115#M7982</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/519176"&gt;@AakashMarasini&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
    <pubDate>Wed, 20 Sep 2023 02:25:26 GMT</pubDate>
    <dc:creator>dm-p</dc:creator>
    <dc:date>2023-09-20T02:25:26Z</dc:date>
    <item>
      <title>Localization Issue</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Localization-Issue/m-p/3432423#M7975</link>
      <description>&lt;P&gt;I am trying to add locale in my custm visual.&lt;BR /&gt;&lt;BR /&gt;I have implemeted in the following way:&lt;BR /&gt;In visual.ts file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;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);
}


}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Capbailities.json for displayNameKey:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AakashMarasini_0-1694760151322.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/969112iCC33392E2563D499/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AakashMarasini_0-1694760151322.png" alt="AakashMarasini_0-1694760151322.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;resources.rejson file&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AakashMarasini_1-1694760270489.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/969117i85E410AEDC28FF2A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AakashMarasini_1-1694760270489.png" alt="AakashMarasini_1-1694760270489.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did i miss anything in my code or in any file. Could you please help me?&lt;BR /&gt;Locale has not been changed in both package visual and developer visual&lt;BR /&gt;&lt;BR /&gt;Thank You!&lt;BR /&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/17823"&gt;@v-viig&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/24978"&gt;@smpa01&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/24486"&gt;@MaksimGaliev&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2023 08:00:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Localization-Issue/m-p/3432423#M7975</guid>
      <dc:creator>AakashMarasini</dc:creator>
      <dc:date>2023-09-15T08:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: Localization Issue</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Localization-Issue/m-p/3439115#M7982</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/519176"&gt;@AakashMarasini&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 02:25:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Localization-Issue/m-p/3439115#M7982</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2023-09-20T02:25:26Z</dc:date>
    </item>
  </channel>
</rss>

