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

Newsletter localization #4485

Merged
merged 23 commits into from
Feb 1, 2022
Merged

Conversation

sephrat
Copy link
Contributor

@sephrat sephrat commented Feb 1, 2022

This will allow some strings in the newsletter to be translated through the use of .resx files. These files are supported by Crowdin and could be added there to allow for global localization. I've already translated the FR part for testing purposes and included it in this PR.

For now the newsletter will use the global language settings, it won't take into account the user's individual preferences.
It will use English as default if there is no resource file present for the set language, so it should be safe to deploy before integrating it into Crowdin and have the generated files for every language.

I hope I did right by the guidelines with the I18n packaging, this is fairly new to me. I'm open to feedback.

@sephrat
Copy link
Contributor Author

sephrat commented Feb 1, 2022

I worked on this before the refactoring was merged to develop, sorry for the mess in the commit list. The relevant commits are near the bottom (from 45c5c1e).

@tidusjar
Copy link
Collaborator

tidusjar commented Feb 1, 2022

That's fine, they all get squashed before going to develop anyway.

I'm going to pull this one down and do a bit of testing, but looking over the code no complaints :)

There are some failing tests mind.

Actually the failing tests are flakey tests... I'll fix them

@tidusjar tidusjar merged commit b5ec556 into Ombi-app:develop Feb 1, 2022
@sephrat sephrat deleted the newsletter-localization branch February 2, 2022 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants