开发者

Qooxdoo - available locales not present

开发者 https://www.devze.com 2023-02-02 13:06 出处:网络
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\"

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?


  1. You have to re-run generate.py if you change the value of LOCALES in config.json. Did you do that?!
  2. Are you using the packages/i18n-with-boot key in the configuration of your app? If it is set to false, locale data will be generated in dedicated parts which have to be loaded explicitly with qx.io.PartLoader. getAvailableLocales will only return those locales that have been loaded.
0

精彩评论

暂无评论...
验证码 换一张
取 消