#15144 closed enhancement (fixed)
[patch][ccla]dojo/i18n: provide property to indicate loaded locale
Reported by: | Adam Peller | Owned by: | Rawld Gill |
---|---|---|---|
Priority: | low | Milestone: | 1.9 |
Component: | Loader | Version: | 1.7.2 |
Keywords: | Cc: | [email protected]…, [email protected]…, Colin Snover | |
Blocked By: | Blocking: |
Description (last modified by )
The patch provides a $locale
property on resource modules loaded by the dojo/i18n! loader plugin to indicate the most specific locale match (as opposed to the locale requested) which may vary from one module to the next. This can be useful for introspection, for example, when applying plural rules, which depend on the language actually used, not the user's default setting.
Attachments (1)
Change History (10)
Changed 9 years ago by
Attachment: | locale.patch added |
---|
comment:1 Changed 9 years ago by
Cc: | [email protected]… [email protected]… added |
---|
comment:2 Changed 9 years ago by
Description: | modified (diff) |
---|
comment:3 Changed 9 years ago by
Defaults to undefined for the root locale, which doesn't give the caller any idea what that langauge is.
comment:5 Changed 9 years ago by
Milestone: | tbd → 1.8 |
---|---|
Priority: | undecided → low |
Status: | new → assigned |
comment:6 Changed 9 years ago by
Milestone: | 1.8 → 2.0 |
---|
1.8 is frozen. Move all enhancements to next release. If you need an exemption from the freeze for this ticket, contact me immediately.
comment:7 Changed 9 years ago by
Cc: | Colin Snover added |
---|
Rawld, any chance we could get this in 1.8 in its current form? If it's more involved, we should certainly wait
comment:8 Changed 8 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
typo in commit message: [30928] was for this ticket.
this patch sets the property on an Array object to return to the caller... not ideal