Skip to content

Conversation

@hschne
Copy link
Contributor

@hschne hschne commented May 31, 2025

I have a client project where we have this configuration:

I18n.available_locales = [ :de ]

# Set default locale to something other than :en
I18n.default_locale = :de

Notice, there's no :en there. Opening /litestream in this project results in an error .

I18n::InvalidLocale (:en is not a valid locale):
i18n (1.14.7) lib/i18n.rb:382:in `enforce_available_locales!'

Removing enforce_available_locales! fixes the issue (as does adding :en to the list of available locales, of course).

Now, I'm not sure what the reasoning was behind initially enforcing the English locale. None of the views contain localized strings (as far as I can tell?) so forcing a locale doesn't seem to have any impact 🤔

@fractaledmind fractaledmind merged commit 5226fec into fractaledmind:main Jun 3, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants