Please read ../CONTRIBUTING.md#configuration-requirements first!
This project is internationalized, so when you add some text contents to the project, please add or use an existing localization key and i18n instead of hardcoding the text.
When you add a new localization key, you have to add an English value in (locales/en.json5
).
If you understand other languages, you can add values for them but if you don't, please don't add them.
Maintainers of each language will add them.
It's welcome to add new languages to the project. If you want to add a new language, you will follow the following steps.
-
Fork the repository and create branch for the new language.
-
Create a new json5 file in
locales
folder with the language code.- For example, if you want to add Japanese, create
ja.json5
.
- For example, if you want to add Japanese, create
-
Edit code to import the new json5 file in
lib/i18n.ts
and add it to thelanguageResources
object. -
Create a draft pull request.
-
Update the
CHANGELOG.md
file with the new language addition with pull request number. -
Mark the pull request as ready for review.
-
The maintainer of the project will ask you that you can be a maintainer of the language.
If you don't want to be a maintainer of the language, until someone else declares to be a maintainer, the language will not be merged.
-
The maintainer of the project will create a new discussion thread for the language.
The discussion thread will be used to track missing or excess keys for the language. The GitHub Actions will update the discussion and reply to a specific thread if there is update, so please track the thread if you are a maintainer of the language.
-
The maintainer of the project will update the actions script to add the language to the CI/CD process.
For this process, please enable "Allow Edits from Maintainers" in the pull request.
-
The maintainer of the project will merge the pull request.
Notes for maintainer:
Maintainer have to get the node id for github discussions comment.
It's format like DC_kwDOIza9ks4AjSve
and the random-like part is base64 encoded message pack of [0, <repo id>, <comment id>]
. ([0, 590790034, 9252424]
)
gh api graphql -f query='
query {
repository(owner: "vrc-get", name: "vrc-get") {
discussion(number: <number>) {
body
id
comments(first: 1) {
nodes {
body
id
}
}
}
}
}
'
Discussion template
Title: <Language> Localization (<Language in Language>)
This is tracking discussion for <Language> Localization.
Please feel free to suggest better localization here.
The maintainers of <Language> localization are <mentions>.
The following table shows the missing keys or excess keys for <Language> Localization. (Generated by github actions)
<!-- github actions update start -->
No updates from github actions yet
<!-- github actions update end -->
- ALCOM is cross-platform, so please use os-independent words as possible.
- For example, use "Directory" instead of "Folder"
- It's not required to translate technical words to your language, you can use them as it is.
- You may use English words as it is, and you may use transliteration if it's common in your language.
- In Japanese, "プロジェクト" is used for "Project".
- You may use English words as it is, and you may use transliteration if it's common in your language.
- It's not required to translate word by word, you can use some other expressions if user can understand well.
- It's important for users to understand the meaning or behavior of the application.
- If you think another expression is better for all languages, please suggest in Text Representation Discussion.