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

i18n(app.yml): new language zh_TW #931

Merged
merged 6 commits into from
Oct 8, 2024
Merged

Conversation

olivertzeng
Copy link
Contributor

translated topgrade to zh_TW

What does this PR do

Standards checklist

  • The PR title is descriptive.
  • I have read CONTRIBUTING.md
  • Optional: I have tested the code myself

For new steps

  • Optional: Topgrade skips this step where needed
  • Optional: The --dry-run option works with this step
  • Optional: The --yes option works with this step if it is supported by
    the underlying command
    add i18n #2

Notes: the tests were successful but the locales doesn't show somehow

translated topgrade to zh_TW
@SteveLauC SteveLauC mentioned this pull request Oct 8, 2024
6 tasks
locales/app.yml Outdated Show resolved Hide resolved
Copy link
Member

@SteveLauC SteveLauC left a comment

Choose a reason for hiding this comment

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

Thanks for the PR, left some comments.

locales/app.yml Show resolved Hide resolved
locales/app.yml Outdated Show resolved Hide resolved
locales/app.yml Outdated Show resolved Hide resolved
locales/app.yml Outdated Show resolved Hide resolved
@SteveLauC
Copy link
Member

CI is not running because we have conflicts.

@olivertzeng
Copy link
Contributor Author

@SteveLauC I suggest having po and mo files or such that separates different languages

That way translating will be much much easier

@olivertzeng
Copy link
Contributor Author

CI is not running because we have conflicts.

Will solve this tonight

@SteveLauC
Copy link
Member

I suggest having po and mo files or such that separates different languages

Interesting, TIL, I agree, though I am not sure if the i18n library used by Topgrade is capable of coping with this. 🤔

Copy link
Member

@SteveLauC SteveLauC left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the patch!

@SteveLauC SteveLauC merged commit 9c25cd7 into topgrade-rs:main Oct 8, 2024
12 checks passed
@Mastermindaxe
Copy link
Contributor

I suggest having po and mo files or such that separates different languages

Interesting, TIL, I agree, though I am not sure if the i18n library used by Topgrade is capable of coping with this. 🤔

@SteveLauC
We could have different files for each language. But is it really better to have them separated? When everything is in one file you can see immediately if there is a key missing for a language you're implementing. On the other hand you'd probably just copy over the english translation file and fill that out step-by-step 🤔 I'd be okay with both. The framework certainly supports it if I recall correctly

@SteveLauC
Copy link
Member

When everything is in one file you can see immediately if there is a key missing for a language you're implementing. On the other hand you'd probably just copy over the english translation file and fill that out step-by-step

Yeah, putting translations together will make adding new language support and checking easier. Let's keep the current
approach.

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