Qooxdoo - available locales not present
The statement
qx.locale.Manager.ge开发者_StackOverflow社区tInstance().getAvailableLocales()
returns only de if I set LOCALES to "en", "de", or nothing if I set LOCALES in config.json to "en" only. What am I doing wrong?
- You have to re-run generate.py if you change the value of LOCALES in config.json. Did you do that?!
- Are you using the
packages/i18n-with-boot
key in the configuration of your app? If it is set tofalse
, locale data will be generated in dedicated parts which have to be loaded explicitly withqx.io.PartLoader
.getAvailableLocales
will only return those locales that have been loaded.
精彩评论