mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-20 04:59:16 +00:00
The locale config is set in application.rb from environment variables already. We don't need to repeat that logic in test.rb. And because it was outdated, the language switcher was actually broken in the test environment. We did have an English selector for the fallback `en` even though we were already displaying English as en_TST. And after switchting to Spanish, we could switch back because en_TST was not in the available locales. I now fixed the test with the right assumption and the config to solve the problem.