<?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: Localize a custom widget (eSearch) added to portal in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/localize-a-custom-widget-esearch-added-to-portal/m-p/1014675#M14342</link>
    <description>&lt;P&gt;Mattias,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;You did exactly what you needed to do to get the localization to be Swedish. Maybe you are having a cache issue. I don't do Portal so all I can say is that it just did this in WAB Dev and it worked fine.&lt;/P&gt;</description>
    <pubDate>Thu, 07 Jan 2021 16:02:25 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2021-01-07T16:02:25Z</dc:date>
    <item>
      <title>Localize a custom widget (eSearch) added to portal</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/localize-a-custom-widget-esearch-added-to-portal/m-p/1014665#M14341</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;Anyone know how to localize a custom widget?&lt;/P&gt;&lt;P&gt;I've downloded&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1104"&gt;@RobertScheitlin__GISP&lt;/a&gt;&amp;nbsp;s eSearch and copied it to my own webserver and registered it to my Portal. All works great, thanks Robert for a great widget with so much config possibilities.&lt;/P&gt;&lt;P&gt;Now I want to translate it into Swedish, I went into the nls-folder and since there already was localizations for french and dutch i just copied the fr-folder and renamed it to swedish and then went ahead to translate the strings.js in my sv-folder. I also changed "sv": 0, to "sv": 1 in this part in the main strings.js&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;  "ro": 0,
  "ru": 0,
  "sv": 1,
  "th": 0,
  "tr": 0,&lt;/LI-CODE&gt;&lt;P&gt;Still my swedish strings doesn't show up. The rest of the web app and widgets are in swedish so nothing wrong with my browser language settings. And i've re-registered the widget to my portal with no luck.&lt;/P&gt;&lt;P&gt;Am I missing something?&lt;/P&gt;&lt;P&gt;I don't have to let it be avalible in english so I guess I could change the main strings.js instead, but it would be better to do this "the right way".&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 15:50:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/localize-a-custom-widget-esearch-added-to-portal/m-p/1014665#M14341</guid>
      <dc:creator>MattiasEkström</dc:creator>
      <dc:date>2021-01-07T15:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: Localize a custom widget (eSearch) added to portal</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/localize-a-custom-widget-esearch-added-to-portal/m-p/1014675#M14342</link>
      <description>&lt;P&gt;Mattias,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;You did exactly what you needed to do to get the localization to be Swedish. Maybe you are having a cache issue. I don't do Portal so all I can say is that it just did this in WAB Dev and it worked fine.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 16:02:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/localize-a-custom-widget-esearch-added-to-portal/m-p/1014675#M14342</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-01-07T16:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: Localize a custom widget (eSearch) added to portal</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/localize-a-custom-widget-esearch-added-to-portal/m-p/1015446#M14344</link>
      <description>&lt;P&gt;Back to work after the weekend and the eSearch widget is translated to Swedish! Must have been a cache issue then. Note to self: rember to clear cache when not seeing any updates.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2021 07:38:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/localize-a-custom-widget-esearch-added-to-portal/m-p/1015446#M14344</guid>
      <dc:creator>MattiasEkström</dc:creator>
      <dc:date>2021-01-11T07:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: Localize a custom widget (eSearch) added to portal</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/localize-a-custom-widget-esearch-added-to-portal/m-p/1015573#M14345</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1104"&gt;@RobertScheitlin__GISP&lt;/a&gt;&amp;nbsp; some follow-up... Translating strings should not affect any functionality right?&lt;/P&gt;&lt;P&gt;But when using my swedish strings I can't open the general settings in the configuration, I get this error in the console&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Uncaught Error: dijit._WidgetsInTemplateMixin: parser returned unfilled promise (probably waiting for module auto-load), unsupported by _WidgetsInTemplateMixin. Must pre-load all supporting widgets before instantiation.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Is the general settigs module in any way related to it's name in the strings.js?&lt;/P&gt;&lt;P&gt;When removing my swedish localization it works again.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I was also going to test the widget in WAB Developer version, but when I add the widget by clicking OK in the settings window I get this error message &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TypeError: widgetJson.manifest[("i18nLabels_featureAction_" + action.name)] is undefined&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And the widget is not added to the application. Do you have any idea what it could be due to?&amp;nbsp;This happens whether I have my localization or not. The manifest.json looks like this:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
  "name": "eSearch",
  "label": "Enhanced Search",
  "platform": "HTML",
  "version": "2.13",
  "wabVersion": "2.16",
  "author": "Robert Scheitlin &amp;amp; Esri R&amp;amp;D Center Beijing",
  "description": "This enhanced search widget offers the ability to search by a string, geometry and spatial relationship.",
  "copyright": "2019",
  "license": "http://www.apache.org/licenses/LICENSE-2.0",
  "properties": {
    "hasVersionManager": true
  },
  "featureActions": [
    {
      "name": "eShowStatistics",
      "uri": "featureActions/eShowStatistics"
    }, {
      "name": "eZoomTo",
      "uri": "featureActions/eZoomTo"
    }
  ]
}&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2021 15:49:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/localize-a-custom-widget-esearch-added-to-portal/m-p/1015573#M14345</guid>
      <dc:creator>MattiasEkström</dc:creator>
      <dc:date>2021-01-11T15:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: Localize a custom widget (eSearch) added to portal</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/localize-a-custom-widget-esearch-added-to-portal/m-p/1015664#M14346</link>
      <description>&lt;P&gt;I have seen this happen when syntax errors are made in the the Strings.js file. A single quote needs to escaped with a backslash before it. You can see this in the French locale file.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2021 18:27:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/localize-a-custom-widget-esearch-added-to-portal/m-p/1015664#M14346</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-01-11T18:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: Localize a custom widget (eSearch) added to portal</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/localize-a-custom-widget-esearch-added-to-portal/m-p/1015909#M14348</link>
      <description>&lt;P&gt;Tried to escape the single quotes but it didn't work, but removing all singel quotes worked. And that works for me. Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2021 13:57:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/localize-a-custom-widget-esearch-added-to-portal/m-p/1015909#M14348</guid>
      <dc:creator>MattiasEkström</dc:creator>
      <dc:date>2021-01-12T13:57:09Z</dc:date>
    </item>
  </channel>
</rss>

