<?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 How to set widget icon depending on locale in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-set-widget-icon-depending-on-locale/m-p/1075480#M14557</link>
    <description>&lt;P&gt;Hi! I'm new to WAB widget development. I'd like to add to make the widget icon shown in toolbar change depending on current locale. I try to do this via css:&lt;/P&gt;&lt;P&gt;html[lang="en"] .jimu-widget-demo {&lt;BR /&gt;&amp;nbsp; icon: url("images/icon_en.png") !important;&lt;/P&gt;&lt;P&gt;&amp;nbsp; background-image: url("images/icon_en.png") !important;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;html[lang="ru"] .jimu-widget-demo {&lt;/P&gt;&lt;P&gt;&amp;nbsp; icon: url("images/icon_ru.png") !important;&lt;/P&gt;&lt;P&gt;&amp;nbsp; background-image: url("images/icon_ru.png") !important;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;But unfortunately icon shown in toolbar doesn't change( Is it possible to do so? Or am I doing it the wrong way? Other localization works fine (I use nls for string translation and the same css tips to use different font styles depending on locale). Thanks in advance!&lt;/P&gt;</description>
    <pubDate>Sun, 04 Jul 2021 14:36:04 GMT</pubDate>
    <dc:creator>AlexeyGaponov</dc:creator>
    <dc:date>2021-07-04T14:36:04Z</dc:date>
    <item>
      <title>How to set widget icon depending on locale</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-set-widget-icon-depending-on-locale/m-p/1075480#M14557</link>
      <description>&lt;P&gt;Hi! I'm new to WAB widget development. I'd like to add to make the widget icon shown in toolbar change depending on current locale. I try to do this via css:&lt;/P&gt;&lt;P&gt;html[lang="en"] .jimu-widget-demo {&lt;BR /&gt;&amp;nbsp; icon: url("images/icon_en.png") !important;&lt;/P&gt;&lt;P&gt;&amp;nbsp; background-image: url("images/icon_en.png") !important;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;html[lang="ru"] .jimu-widget-demo {&lt;/P&gt;&lt;P&gt;&amp;nbsp; icon: url("images/icon_ru.png") !important;&lt;/P&gt;&lt;P&gt;&amp;nbsp; background-image: url("images/icon_ru.png") !important;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;But unfortunately icon shown in toolbar doesn't change( Is it possible to do so? Or am I doing it the wrong way? Other localization works fine (I use nls for string translation and the same css tips to use different font styles depending on locale). Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Sun, 04 Jul 2021 14:36:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-set-widget-icon-depending-on-locale/m-p/1075480#M14557</guid>
      <dc:creator>AlexeyGaponov</dc:creator>
      <dc:date>2021-07-04T14:36:04Z</dc:date>
    </item>
  </channel>
</rss>

