You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This caused an order-dependent test failure in our build since we load i18n/tasks late and have some other tests that depend on I18n.enforce_available_locales being true.
I think the gem should be changed to ensure enforce_available_locales remains whatever the original value was. But I don't know why the gem is setting it to true, so I can't propose a precise solution. If enforce_available_locales need to be off for some tests or features, the toggling of it should probably be in those tests or features rather than globally.
The text was updated successfully, but these errors were encountered:
We are retrieving pluralization data for various language files, but without that line, I18n complains that those languages are not available. Pluralization is, I believe, the only case of us using I18n.t, so the problem does not come up in other cases. The reason as I understand it is that while we load all language files of the underlying application, we don't set the available locales anywhere.
In the most recent version, loading the 'i18n/tasks' file forces
I18n.enforce_available_locales
tofalse
This caused an order-dependent test failure in our build since we load
i18n/tasks
late and have some other tests that depend onI18n.enforce_available_locales
beingtrue
.I think the gem should be changed to ensure
enforce_available_locales
remains whatever the original value was. But I don't know why the gem is setting it totrue
, so I can't propose a precise solution. Ifenforce_available_locales
need to be off for some tests or features, the toggling of it should probably be in those tests or features rather than globally.The text was updated successfully, but these errors were encountered: