I18n::InvalidLocale: :en is not a valid locale

I seem to have a similar problem which I resolved by inspecting the source code associated with the error.

I found I have to explicitly set the available locales like so:

I18n.config.available_locales = :en

I’m not sure if this is the correct approach, I see also that the following achieves the same effect and is likely more robust.

Leave a Comment