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

Add SwiftPolyglot to validate localizations #2011

Merged
merged 3 commits into from
Mar 25, 2024

Conversation

roddymunro
Copy link
Contributor

@roddymunro roddymunro commented Mar 22, 2024

I thought it would be a good idea to add my new script, SwiftPolyglot, as a PR check for IceCubes. The script simply parses all .xcstrings in the repository and ensures that there are translations present for every key in every localization that the app supports.

I'm adding this without the --errorOnMissing flag, as I noticed there's a few translations missing. This means the step will "pass", but you will be able to see all the warnings by viewing the GitHub action's output. Annotations will also be added to the .xcstrings files missing translations.

Here's the output of the script: https://github.com/roddymunro/IceCubesApp/actions/runs/8383388923/job/22959006951

@Dimillian
Copy link
Owner

That's super nice, let me run and see what is missing so we can merge and enable it

@Dimillian Dimillian merged commit bb56047 into Dimillian:main Mar 25, 2024
2 checks passed
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.

2 participants