- New file: Add a new JSON file in the frontend/src/langs, with the file naming format is " {language}-{region}.json", e.g. English is "en-us.json", simplified Chinese is "zh-cn.json". Highly recommended to duplicate the en-us.json file and rename it.
- Fill content: Refer to en-us.json, or duplicate the file and modify the language content.
- Update codes: Editfrontend/src/langs/index.js, import the new language data inside.
import en from './en-us' // import your new localize file 'zh-cn' here import zh from './zh-cn' export const lang = { en, // export new language data 'zh' here zh, }
- Submit review once there are no issues with the translation context in the application. (learn how to submit)
The format of PR's title like ": "
- type: PR type
- description: PR description
PR type list below:
type | description |
---|---|
revert | Revert a commit |
feat | New features |
perf | Performance improvements |
fix | Fix any bugs |
style | Style updates |
docs | Document updates |
refactor | Code refactors |
chore | Some chores |
ci | Automation process configuration or script updates |