Add: Traditional Chinese Translation (#496) #498
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add: Traditional Chinese Translation (#496)
Related issue
Closes #496
Context / Background
Added Traditional Chinese Translation
What change is being introduced by this PR?
The translation is added following the guide on #475:
Add the language locale in
src/configs/app.config.js
, on the arraylanguages
Create a new directory under
locales
, with the locale of the languageCopy the
json
files fromlocales/en/
to the new created directoryTranslate the strings in the new
locales/{LANG}/translation.json
You'll see strings for "Time to Leave". This is the app name, and you don't need to translate it.
Remember to include the new added language in all
translation.json
files, under the"$Language"
scope. The name for the language across all file should not be translations, but instead be the native name for the languageTranslate README, by creating a new
docs/README-{LANG}.md
, with a copy of the mainREADME.md
, but translating into the specific languagemInclude a reference to newly created
docs/README-{LANG}.md
inREADME.md
, close to the top, stating: "This document is also available in {LANG}", but translated to the targeted languageHow will this be tested?