i18n
Internationalization and Localization
Thank you for helping us translate the software.
Create a New Translation
Before starting a new language translation, please check the existing pull requests to see if anyone is already working on the translation. If you find relevant content, please join the discussion and help us keep the existing translations up to date.
If no existing translation is available, you can follow these steps to create a new one:
- Fork the repository.
- Switch to the
main
branch to get the latest translation content. - Create a new branch for your translation work, based on the
main
branch. - Create a language file for your target language in the
/packages/canyon-platform/locales
directory. - Copy the contents of the source file
/packages/canyon-platform/locales/en.json
into the target language file. - Translate the strings in the target language file.
- Add your language entry to
/packages/canyon-platform/languages.json
. - Save and commit your changes.
- Submit a pull request.
You can submit a pull request before completing all the steps: for example, you may need help with translations or resolving failing tests. However, your pull request will not be merged until all steps are completed.
Translating the entire site is a sizable task. One way to break it down is by creating pull requests on your fork and collaborating with other translators. You can also add collaborators to your fork, inviting others to directly submit to your fork and collectively manage the pull request merges.
Update Translations
Corrections
If you find spelling or grammatical errors, typos, or opportunities for better phrasing, please open a pull request with your suggestions. If you discover an issue but are unsure or don’t have time to fix it, please open an issue.
Broken Links
When testing reveals broken links, please try to fix all links in the translations. Ideally, just updating the URL of the link will suffice to avoid translation changes.