Skip to content

Add commands and workflows to handle translations #542

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

Merged
merged 9 commits into from
Nov 5, 2021
Merged

Conversation

silvanocerza
Copy link
Contributor

@silvanocerza silvanocerza commented Oct 11, 2021

Add four yarn commands:

  • i18n:generate to generate the source json file that contains all translatable strings
  • i18n:check to verify that the source json file is updated with new strings
  • i18n:push to push source file json file to Transifex
  • i18n:pull to pull translation files from Transifex

Also add three new workflows:

  • check-i18n-task.yml to verify that each PR updates the source json file in i18n if necessary
  • i18n-nightly-push.yml to push source file json file to Transifex each night
  • i18n-weekly-pull.yml to pull translation files from Transifex each Monday

The workflow currently in use in the arduino/arduino-cli repo is not usable for this project since the release process is different.

@silvanocerza silvanocerza added type: enhancement Proposed improvement status: in progress Work is in progress on this topic: infrastructure Related to project infrastructure labels Oct 11, 2021
@silvanocerza silvanocerza requested a review from a team October 11, 2021 10:45
@silvanocerza silvanocerza self-assigned this Oct 11, 2021
Copy link
Contributor

@per1234 per1234 left a comment

Choose a reason for hiding this comment

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

I only reviewed the workflow syntax, but that part looks good to me.
Very exciting to see the i18n initiative moving forward. Thanks Silvano!

@silvanocerza silvanocerza marked this pull request as ready for review November 4, 2021 13:49
@silvanocerza silvanocerza merged commit 99d6553 into main Nov 5, 2021
@silvanocerza silvanocerza deleted the scerza/i18n branch November 5, 2021 08:49
@rsora rsora mentioned this pull request Jan 11, 2022
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: in progress Work is in progress on this topic: infrastructure Related to project infrastructure type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants