Namespacedojo.i18n

dojo.require("dojo.i18n");
defined in dojo/i18n.js

Utility classes to enable loading of resources for internationalization (i18n)

FunctionsBack to top

Functiondojo.i18n.getLocalization(packageName: String, bundleName: String, locale: String?)
Returns an Object containing the localization for a given resource bundle in a package, matching the specified locale.
Returns canonical form of locale, as used by Dojo.
Functiondojo.i18n._preloadLocalizations(bundlePrefix: String, localesGenerated: Array)
Load built, flattened resource bundles, if available for all locales used in the page. Only called by built layer files.
Functiondojo.i18n._requireLocalization(moduleName: String, bundleName: String, locale: String?, availableFlatLocales: String?, m, b)
See dojo.requireLocalization()
Functiondojo.i18n._searchLocalePath(locale: String, down: Boolean, searchFunc: Function)
A helper method to assist in searching for locale-based resources. Will iterate through the variants of a particular locale, either up or down, executing a callback function. For example, "en-us" and true will try "en-us" followed by "en" and finally "ROOT".