#13153 closed defect (fixed)
i18n.getLocalization is broken in a build
Reported by: | ykami | Owned by: | Rawld Gill |
---|---|---|---|
Priority: | high | Milestone: | 1.7 |
Component: | Internationalization | Version: | 1.6.1 |
Keywords: | Cc: | Adam Peller | |
Blocked By: | Blocking: |
Description
i18n.getLocalization does not work if dojo/i18n.js is built.
In the funcion syncRequire, I found this comment:
// TODO: make sure closure compiler does not stomp on this function name function define(bundle){ __result= bundle; }
I used shrinksafe, but unfortunately it mangles the function name, (i.e. "define" is renamed to something like "_28") and that is the cause of this problem.
Change History (4)
comment:1 Changed 10 years ago by
Cc: | Adam Peller added |
---|---|
Owner: | changed from Adam Peller to Rawld Gill |
comment:2 Changed 10 years ago by
Status: | new → assigned |
---|
comment:3 Changed 10 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
(In [25350]) expresses critical code in i18n so that minifiers will not modify; fixes encoding with rhino; fixes #13153; !strict