Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

fix locale fallbacks so they actually fallback #1314

Merged
merged 2 commits into from
Aug 5, 2021
Merged

fix locale fallbacks so they actually fallback #1314

merged 2 commits into from
Aug 5, 2021

Conversation

johrstrom
Copy link
Contributor

Fixes #1252.

I can really only test this manually - but here's the test where Cluster dropdown could be in zh-CN, but there's no translation for them so they're in english. I.e., the fallback to english worked.

image

There's not clean way to test in system or integration tests because the system boots up and sets defaults (english) that, even if you override in a test case, everything's already setup, you can't reset it. So looks like we'll have to add some end-to-end coverage for locales.

Copy link
Contributor

@Oglopf Oglopf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@Oglopf
Copy link
Contributor

Oglopf commented Aug 5, 2021

Very cool, even worked when I generated errors. I never experienced any issues but I couldn't remember if you had said something about the File app not working right. If I'm mistaken, I'm good to merge it in.

@johrstrom
Copy link
Contributor Author

I left comments on the bug ticket about how/where errors appear in the files app.

@johrstrom
Copy link
Contributor Author

I mean if you have locale set to zh-CN the files app doesn't work on master. This fixes that.

@Oglopf Oglopf merged commit 7126c26 into master Aug 5, 2021
@Oglopf Oglopf deleted the fix-locales branch August 5, 2021 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

locale fallbacks not working
3 participants