ravi.konaparthi

API v 1.7 nls strings

Discussion created by ravi.konaparthi on Aug 14, 2012
Latest reply on Aug 16, 2012 by ravi.konaparthi
Hi,

Can anyone help me in how to use nls folder in custom widget implementation. When i am trying to point the nls folder it is referring to the AGS JS API (http://serverapi.arcgisonline.com/jsapi/arcgis/3.1compact/js/dojo/dojo/com/esri/template/nls/localizedStrings.js)

Here is how i am implementing nls:

require(["esri/map", "dojo/i18n"],
function (map, i18nStrings) {
          dojo.requireLocalization("com.esri.template", "localizedStrings");
          var nlsStrings = dojo.i18n.getLocalization("com.esri.template", "localizedStrings");
});


Any my nls file content is

{
    "outsideArea": "You are currently outside the supported area",
    "geoLocationTimeOut": "Timeout exceeded. Unable to perform the operation",
    "positionUnavailable": "Position unavailable",
    "permissionDenied": "Permission denied to locate current location",
}

Regards,
Ravi.

Outcomes