FIX: Server didn't use default_locale as fallback locale

This commit is contained in:
Gerhard Schlager
2018-01-22 14:42:12 +01:00
parent 01f9995956
commit ce060e2b86
4 changed files with 36 additions and 9 deletions

View File

@ -25,7 +25,7 @@ module I18n
end
def fallbacks(locale)
[locale, SiteSetting.default_locale.to_sym, :en].uniq.compact
I18n.fallbacks[locale]
end
def exists?(locale, key)