Consistent reference of the source locale

This commit is contained in:
Maikel Linke
2018-03-13 10:25:31 +11:00
parent 64063f305b
commit 01dc51c84b

View File

@@ -10,7 +10,7 @@ module OpenFoodNetwork
# All locales that can be accessed by the application, including fallbacks.
def self.available_locales
(selectable_locales + [default_locale, 'en']).uniq
(selectable_locales + [default_locale, source_locale]).uniq
end
# The default locale that is used when the user doesn't have a preference.