can not translate resources. dojo/i18n!esri/nls/jsapi is missed in JS 4.6

2465
13
04-11-2018 01:07 AM
SergeyVladimirov
New Contributor II

in java script 3.* there was library "dojo/i18n!esri/nls/jsapi"

require(["esri/map", "dojo/i18n!esri/nls/jsapi", "dojo/domReady!"],
  function(Map, bundle) {
    bundle.widgets.legend.NLS_noLegend = "My No Legend";
  }
);

But it looks that "dojo/i18n!esri/nls/jsapi" is missed in js 4.6. So i can not translate any text.

Is there any other way to localize resources ?

0 Kudos
13 Replies
MattDriscoll
Esri Contributor

Hi @ Robert Scheitlin, GISP @ Sergey Vladimirov We’re looking into this for a future update.

We're also looking to start using dojo2 i18n for our widgets and Dojo2 has a plan to be able to do this.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Matt,

   So right now there is now way to override localized widget strings?

0 Kudos
MattDriscoll
Esri Contributor

As of right now, not that I'm aware of. 

You could create a copy of the view and supply a custom one but that seems like overkill. There may be some way to intercept the URL but that seems like a bad idea as well.

SergeyVladimirov
New Contributor II

may there is way to create my own resources. as esri does not support ukrainian language, i would create it. 

0 Kudos