Allow configuration of available locales#10472
Conversation
changelog: Internal, Configuration, Allow configuration of available locales
|
I was trying to find any places in code we hard-code locales. While I didn't find any that reference the list, I did find this code, which is something we'll want to plan around as we add more locales. Maybe we can add a test that fails if the set of locales that it switches on is different from identity-idp/lib/telephony/pinpoint/voice_sender.rb Lines 100 to 111 in c8e7a0d |
Thanks for catching that. Refactored to add a test. |
|
I found another place we have hardcoded lists of locales. Can this be updated to reference the configuration? Or have a test similar to what was added for identity-idp/config/initializers/rack_attack.rb Lines 11 to 13 in 1d769f7 |
🛠 Summary of changes
As we move towards supporting more languages, we will want to be able to enable locales per-environment so that we can continue working on content without yet displaying to end users.