From 3ab5c6a71f20f086d7238fb5dc59321d7b85d86b Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Tue, 11 Feb 2025 13:47:46 -0800 Subject: More i18n process updates (#7720) * Modify intl:extract to only target english, the source language * Add github action to regularly update english .po file * Update localization doc --- docs/localization.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'docs') diff --git a/docs/localization.md b/docs/localization.md index 1c43fe439..25c4518e6 100644 --- a/docs/localization.md +++ b/docs/localization.md @@ -40,16 +40,18 @@ Please only request a new language when you are certain you will be able to cont Install the [Crowdin CLI](https://crowdin.github.io/crowdin-cli/). You will need to [configure your API token](https://crowdin.github.io/crowdin-cli/configuration) to access the project. +### English source-file sync with Crowdin + +Every night, a GitHub action will run `yarn intl:extract` to update the english `messages.po` file. This will be automatically synced with Crowdin. Crowdin should notify all subscribed users of new translations. + ### Release process 1. Pull main and create a branch. 1. Run `yarn intl:pull` to fetch all translation updates from Crowdin. 1. Create a PR, ensure the translations all look correct, and merge. -1. Merge all approved translation PRs (contributions from outside crowdin). -1. Pull main. -1. Run `yarn intl:extract` to sync the english `.po` file with the state of the app. -1. Run `yarn intl:push` to sync Crowdin with the state of the repo. -1. Commit the updated english `.po` and push to GitHub. +1. If needed: + 1. Merge all approved translation PRs (contributions from outside crowdin). + 1. Run `yarn intl:push` to sync Crowdin with the state of the repo. ### Testing the translations in Crowdin -- cgit 1.4.1