mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: English locale must not fall back to any other locale
This commit is contained in:
@@ -12,7 +12,7 @@ module I18n
|
||||
site_locale = SiteSetting.default_locale.to_sym
|
||||
|
||||
locale_list =
|
||||
if locale == site_locale || site_locale == :en
|
||||
if locale == site_locale || site_locale == :en || fallback_locale == :en
|
||||
[locale, fallback_locale, :en]
|
||||
else
|
||||
site_fallback_locale = LocaleSiteSetting.fallback_locale(site_locale)
|
||||
|
||||
Reference in New Issue
Block a user