Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Make i18n more tolerant of missing files #21561

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

cathysarisky
Copy link
Contributor

@cathysarisky cathysarisky commented Nov 7, 2024

This fix adds an extra fallback to 'en' when a locale folder is missing one or more translation files, and a test for the fallback.

I had to do a little bit of a refactor to extract a testable function.

@cathysarisky cathysarisky changed the title make i18n a little more resistant to missing files Make i18n more tolerant of missing files Nov 12, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant