Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#13266 closed defect (fixed)

dojo.config.extraLocale is not implemented

Reported by: Rawld Gill Owned by: Rawld Gill
Priority: high Milestone: 1.7
Component: Core Version: 1.7.0b1
Keywords: Cc:
Blocked By: Blocking:

Description

define(["dojo/i18n!someModule/nls/someBundle"], //...

currently loads the bundle for the locale given by dojo.locale. It should also load the bundle for all locales given by dojo.config.extraLocale (a single locale or a vector of locales).

Change History (3)

comment:1 Changed 8 years ago by Rawld Gill

Status: newassigned

If you write...

require/define(["dojo/i18!myModule/nls/myBundle" //...

then myBundle is loaded and returned for dojo.locale. This should be changed to load localized bundles for dojo.locale + all bundles in dojo.config.extraLocale (if any), and then return the particular bundle associated with dojo.locale. Then, at any time in the future, you could request any local in dojo.locale + dojo.config.extraLocales and get the bundle synchronously via the require("<module>/nls/<locale>/<bundle>") signature.

comment:2 Changed 8 years ago by Rawld Gill

Resolution: fixed
Status: assignedclosed

(In [25585]) added dojo.config.extraLocale processing in dojo/i18n consistent with v1.6-; added tests; fixes #13266; !strict

comment:3 Changed 8 years ago by Rawld Gill

(In [25637]) fixed regression loading old-style nls bundles introduced in [25585]; added test to prove regression and fix; refs #13266; !strict

Note: See TracTickets for help on using tickets.