Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test for issue with Fallbacks and enforce_available_locales
Created a test-case for an issue where the Fallbacks module will generate an I18n::InvalidLocale error. Fallbacks relies on I18n.translation to find out whether there's a translation for a fallback locale (e.g. :'de' for :'de-DE'). But I18n.translation does not distinguish from a "user" call and one coming from the Fallbacks module, and may raise I18n::InvalidLocale if enforce_available_locales is set.
- Loading branch information