dojo.i18n¶
Project owner: | Adam Peller |
---|---|
since: | V1.0 |
Utility classes to enable loading of resources for internationalization.
Used exclusively with dojo.requireLocalization.
Usage¶
dojo.i18n.getLocalization gets a reference to an Object with localized strings, as loaded by dojo.requireLocalization()
Dojo 1.7 (AMD)¶
require(["dojo/i18n!dijit/form/nls/validate"], function(i18n){
console.log(i18n.invalidMessage);
});
Dojo < 1.7¶
var validate = dojo.i18n.getLocalization("dijit.form", "validate");
console.log(validate.invalidMessage);