Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[admin] dark mode #5511

Merged
merged 9 commits into from
Nov 15, 2023
Prev Previous commit
Next Next commit
Fallback to the default locale if the selected one is unsupported
This can happen if the list of available locales changes and an old
value is stored in the session.
  • Loading branch information
elia committed Nov 15, 2023
commit b3ea5e97772cce3626057de038d30fd37fce8bb7
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ def user_locale
end

def set_locale
I18n.locale = user_locale
I18n.locale = I18n.locale_available?(user_locale) ? user_locale : I18n.default_locale
end
end