dojo.i18n.normalizeLocale
dojo.require("dojo.i18n");
defined in dojo/i18n.js
All variants are case-insensitive and are separated by '-' as specified in RFC 3066. If no locale is specified, the dojo.locale is returned. dojo.locale is defined by the user agent's locale unless overridden by djConfig.
Usage
function (/*String?*/ locale) (view source)
parameter | type | description |
---|---|---|
locale | String | Optional. |