mirror of
https://github.com/discourse/discourse.git
synced 2024-12-16 04:46:00 +08:00
728845d008
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. |
||
---|---|---|
.. | ||
ar.js.erb | ||
bs_BA.js.erb | ||
cs.js.erb | ||
da.js.erb | ||
de.js.erb | ||
en.js.erb | ||
es.js.erb | ||
fa_IR.js.erb | ||
fi.js.erb | ||
fr.js.erb | ||
he.js.erb | ||
i18n.js | ||
id.js.erb | ||
it.js.erb | ||
ja.js.erb | ||
ko.js.erb | ||
nb_NO.js.erb | ||
nl.js.erb | ||
pl_PL.js.erb | ||
pt_BR.js.erb | ||
pt.js.erb | ||
ro.js.erb | ||
ru.js.erb | ||
sq.js.erb | ||
sv.js.erb | ||
te.js.erb | ||
tr_TR.js.erb | ||
uk.js.erb | ||
zh_CN.js.erb | ||
zh_TW.js.erb |