Merge pull request #13961 from mkllnk/taler-checkout-stock-error

Taler checkout stock error
This commit is contained in:
Maikel
2026-03-20 11:29:58 +11:00
committed by GitHub
19 changed files with 201 additions and 448 deletions

View File

@@ -20,6 +20,10 @@ module OpenFoodNetwork
(selectable_locales + [default_locale, source_locale]).uniq
end
def self.fallbacks
[default_locale, source_locale].uniq
end
# The default locale that is used when the user doesn't have a preference.
def self.default_locale
ENV["LOCALE"] || ENV["I18N_LOCALE"] || source_locale