How to add a new translation?
Assume that we are adding a new translation for new.
- copy
app/locales/en.tstoapp/locales/new.ts; - edit
new.ts, changeconst en: LocaleType =toconst new: PartialLocaleType, andexport default new;; - edit
app/locales/index.ts: import new from './new.ts';- add
newtoALL_LANGS; - add
new: "new lang"toALL_LANG_OPTIONS; - translate the strings in
new.ts; - submit a pull request, and the author will merge it.