<?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: Unable to implement localization within a Custom Visual in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Unable-to-implement-localization-within-a-Custom-Visual/m-p/3123043#M7051</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/425188"&gt;@timseltman&lt;/a&gt;&amp;nbsp;- are you looking at the developer visual or the packaged visual? Historically, this has only worked when you package the visual and test that.&lt;/P&gt;
&lt;P&gt;It looked like they recently made a change in &lt;A href="https://github.com/microsoft/PowerBI-visuals-tools/blob/main/Changelog.md#407" target="_self"&gt;powerbi-visuals-tools 4.0.7&lt;/A&gt; to try and support this, but quickly rolled it back due to vulnerabilities, so may appear again in the near future.&lt;/P&gt;
&lt;P&gt;Regards,.&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
    <pubDate>Fri, 10 Mar 2023 03:59:09 GMT</pubDate>
    <dc:creator>dm-p</dc:creator>
    <dc:date>2023-03-10T03:59:09Z</dc:date>
    <item>
      <title>Unable to implement localization within a Custom Visual</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Unable-to-implement-localization-within-a-Custom-Visual/m-p/3122316#M7039</link>
      <description>&lt;P&gt;I am trying to implement localization within a propriatary custom visual. However I was able to reproduce the issue within a starter custom visual which you can find in this github:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/TimSeltmanJinett/Sandbox-PowerBI-Localization/tree/main/localization" target="_blank" rel="noopener"&gt;Sandbox-PowerBI-Localization/localization at main · TimSeltmanJinett/Sandbox-PowerBI-Localization (github.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically I am following the instructions for implementing localization from the main wiki page:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/visuals/localization?tabs=English" target="_blank" rel="noopener"&gt;Add the locale in Power BI for Power BI visuals - Power BI | Microsoft Learn&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the localization manager does not seem to be pulling the&amp;nbsp;&lt;SPAN&gt;displayNameKey;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;nor the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;descriptionKey;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;ids assigned to the dataRoles in the capabilities.json nor the settings.ts file, correctly. Instead I get this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="timseltman_0-1678388958247.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/884202i968878F5AE3AFA15/image-size/medium?v=v2&amp;amp;px=400" role="button" title="timseltman_0-1678388958247.png" alt="timseltman_0-1678388958247.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have done the following steps:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Set up a localization manager, and initializing it within the constructor&lt;/LI&gt;&lt;LI&gt;Add the localization manager to the&amp;nbsp;&lt;SPAN&gt;FormattingSettingsService&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Add&amp;nbsp;&lt;/SPAN&gt;"&lt;SPAN&gt;displayNameKey" and "descriptionKey" to each dataRole within the capabilities.json file as well as within each slicer of the setting cards.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Created a "stringResources" folder; added both a "us-EN" and "es-ES" subfolders.&lt;/LI&gt;&lt;LI&gt;Within each sub-folder added a "resources.resjson" file that contains the "&lt;SPAN&gt;displayNameKey" and "descriptionKey" label associates based on the language.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;&lt;SPAN&gt;Added relative links to the "resources.resjson" files in the "&lt;/SPAN&gt;&lt;/SPAN&gt;stringResources" variable within the "pbiviz.json" file.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I'm unsure what I am doing wrong. I tried looking at other microsoft repositories and they appear to be doing the same thing I was doing:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/microsoft/powerbi-visuals-heatmap" target="_blank" rel="noopener"&gt;microsoft/powerbi-visuals-heatmap: powerbi-visuals-heatmap (github.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be most appreciative.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2023 19:21:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Unable-to-implement-localization-within-a-Custom-Visual/m-p/3122316#M7039</guid>
      <dc:creator>timseltman</dc:creator>
      <dc:date>2023-03-09T19:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to implement localization within a Custom Visual</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Unable-to-implement-localization-within-a-Custom-Visual/m-p/3123043#M7051</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/425188"&gt;@timseltman&lt;/a&gt;&amp;nbsp;- are you looking at the developer visual or the packaged visual? Historically, this has only worked when you package the visual and test that.&lt;/P&gt;
&lt;P&gt;It looked like they recently made a change in &lt;A href="https://github.com/microsoft/PowerBI-visuals-tools/blob/main/Changelog.md#407" target="_self"&gt;powerbi-visuals-tools 4.0.7&lt;/A&gt; to try and support this, but quickly rolled it back due to vulnerabilities, so may appear again in the near future.&lt;/P&gt;
&lt;P&gt;Regards,.&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 03:59:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Unable-to-implement-localization-within-a-Custom-Visual/m-p/3123043#M7051</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2023-03-10T03:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to implement localization within a Custom Visual</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Unable-to-implement-localization-within-a-Custom-Visual/m-p/3123108#M7052</link>
      <description>&lt;P&gt;I am working with the developer visual and have not tested as a package. I am working with powerbi-visuals-tools version 4.0.8; along with upgrading all modules to their latest version (including powerbi-visuals-api to 5.2.0). I will attempt to test this tomorrow and I'll let you know the result.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 05:15:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Unable-to-implement-localization-within-a-Custom-Visual/m-p/3123108#M7052</guid>
      <dc:creator>timseltman</dc:creator>
      <dc:date>2023-03-10T05:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to implement localization within a Custom Visual</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Unable-to-implement-localization-within-a-Custom-Visual/m-p/3124291#M7060</link>
      <description>&lt;P&gt;After testing this morning, you are correct. It appears that in order to test if the localization is working, I have to package the visual and test it as if it is the final product. It does not appear that the description key is working though (nothing happens when I hover over the labels; even though I have set up description keys for each), so I may have to default that to English for the time being. But otherwise this just adds to the testing of the program. Either way this answers my question. Hopefully in the future, description keys work properly and we are able to test localization in developer view.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit: after further testing, the hovering appears to be weird when using English. In Spanish, the hover works just fine, but not so in English. Nothing appears when I hover over the labels. Not sure if it is a bug or what.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 15:10:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Unable-to-implement-localization-within-a-Custom-Visual/m-p/3124291#M7060</guid>
      <dc:creator>timseltman</dc:creator>
      <dc:date>2023-03-10T15:10:30Z</dc:date>
    </item>
  </channel>
</rss>

