Dimillian / IceCubesApp

A SwiftUI Mastodon client
https://apps.apple.com/us/app/ice-cubes-for-mastodon/id6444915884
GNU Affero General Public License v3.0
5.36k stars 504 forks source link

Add SwiftPolyglot to validate localizations #2011

Closed roddymunro closed 6 months ago

roddymunro commented 6 months ago

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 commented 6 months ago

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