This patch sets I18n.defaultLocale in the Discourse.start() script block (it was formerly always 'en') to SiteSetting.default_locale, and patches translate() to perform fallback to defaultLocale followed by english. Additionally, when enable_verbose_localization() is called, no fallbacks will be performed. It also memoizes the file loading operations in JsLocaleHelper and strips out translations from the fallbacks that are also present in a prefered language, to minimize file size. |
||
|---|---|---|
| .. | ||
| admin | ||
| defer | ||
| discourse | ||
| docs | ||
| ember-addons | ||
| locales | ||
| admin.js.erb | ||
| application.js.erb | ||
| discourse.js | ||
| ember_include.js.erb | ||
| env.js | ||
| jquery_include.js.erb | ||
| main_include_admin.js | ||
| main_include.js | ||
| pagedown_custom.js | ||
| preload_store.js | ||
| vendor.js | ||