brain-marks
brain-marks copied to clipboard
feat: Add Crowdin integration for localization.
Progress / Closed on issue # https://github.com/mikaelacaron/brain-marks/issues/135
What it Does
- Add Crowdin integration for localization.
- Create GH action workflow that pushes the latest strings file to Crowdin. It then pulls the latest assets and generates a PR.
- Also, restructure German as a sublanguage in the group.
How I Tested
- Momentarily set the GH workflow to trigger the action for push from branch:
feature/135-add-additional-localizations
. This can be verified here: https://github.com/Kiran-B/brain-marks/actions/runs/3182620808/workflow - It successfully executed the workflow. This can be verified here: https://github.com/Kiran-B/brain-marks/actions/runs/3182620808/jobs/5188799588
- The action successfully created a PR. This used a sample Crowdin Project that I had setup. PR: https://github.com/Kiran-B/brain-marks/pull/2
Notes
Two important setups are required to be done by this repo owner before this PR can be merged:
- Create a Crowdin Project with the required languages chosen.
- Define two secrets in this repo setting. CROWDIN_PROJECT_ID & CROWDIN_PERSONAL_TOKEN.
Screenshot
Restructure of German Localizable.strings
as a sublanguage in the group:
Before:
After:
@Kiran-B thanks for the work! I want to hold off on this until after Hacktoberfest, because of the project changes that are required. (I don't have the time at the moment)
You're welcome to work on another issue!