You can follow these steps to support localization when developing new features
Introduction
- Reuse the existing text entries in
/resource/l10n/zh-CN.tomlwhen replacing hard-coded strings in a new feature. - If a new feature introduces new text, add the source entry to
zh-CN.tomlfirst, then add the same key to other language files and provide the corresponding translations.
Adding a New Localized Text File
- Add the new language text file under
/resource/l10n/. - Copy the existing keys from the other language files into the new language file.
- Fill in the translations for the new language file.
