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

Switch to iso2 codes #524

Merged
merged 19 commits into from
Dec 17, 2024
Merged

Switch to iso2 codes #524

merged 19 commits into from
Dec 17, 2024

Conversation

helocordi
Copy link
Contributor

Contributor checklist


Description

In response to issue #494, I've switched every single reference to a language to ISO-2 code.
"Danish": "da",
"English": "en",
"French": "fr",
"German": "de",
"Italian": "it",
"Norwegian": "nb",
"Portuguese": "pt",
"Russian": "ru",
"Spanish": "es",
"Swedish": "sv"

It still needs to be tested a bit to ensure that the change doesn't lead to new errors.

Related issue

Copy link

github-actions bot commented Dec 16, 2024

Thank you for the pull request!

The Scribe team will do our best to address your contribution as soon as we can. The following is a checklist for maintainers to make sure this process goes as well as possible. Feel free to address the points below yourself in further commits if you realize that actions are needed :)

If you're not already a member of our public Matrix community, please consider joining! We'd suggest using Element as your Matrix client, and definitely join the General and iOS rooms once you're in. Also consider joining our bi-weekly Saturday dev syncs. It'd be great to have you!

Maintainer checklist

  • The linting and formatting workflows within the PR checks do not indicate new errors in the files changed

  • The CI unit test workflows within the PR checks do not indicate new errors in the files changed

  • The CHANGELOG has been updated with a description of the changes for the upcoming release and the corresponding issue (if necessary)

@andrewtavis andrewtavis self-requested a review December 16, 2024 16:25
"Russian": NSLocalizedString("app._global.russian", value: "Russian", comment: ""),
"Spanish": NSLocalizedString("app._global.spanish", value: "Spanish", comment: ""),
"Swedish": NSLocalizedString("app._global.swedish", value: "Swedish", comment: "")
"EN": NSLocalizedString("app._global.en", value: "EN", comment: ""),
Copy link
Member

Choose a reason for hiding this comment

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

These lines here need to be reverted to what they were as they're referencing data coming from Scribe-i18n :) No stress as there's little way for you to know this, @helocordi!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These lines here need to be reverted to what they were as they're referencing data coming from Scribe-i18n :) No stress as there's little way for you to know this, @helocordi!

Ok I'll change that

@andrewtavis
Copy link
Member

Initial glances are looking really good, @helocordi! We'll try to bring this in in the comings days :) Can you fix the comment above?

@helocordi
Copy link
Contributor Author

Initial glances are looking really good, @helocordi! We'll try to bring this in in the comings days :) Can you fix the comment above?

Perfect, I've changed it now :)

Copy link
Member

@henrikth93 henrikth93 left a comment

Choose a reason for hiding this comment

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

Looks good to me

Copy link
Member

@andrewtavis andrewtavis left a comment

Choose a reason for hiding this comment

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

Ultimately we do did need to revert the changes to the controller language references as I forgot that those are coming directly from the settings for each keyboard. We could switch it over, but then in thinking as well there might be some pros to the full language as strings as there will one day be languages that people are not sure on for the iso-2 code 😊 As it stands now, we're changing variable names to just use iSO-2 codes, which further matches the file names. I'd say this is great 😊

Thanks for the great contribution, @helocordi!

@andrewtavis andrewtavis merged commit 3aed977 into scribe-org:main Dec 17, 2024
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.

3 participants