Assume that we are adding a new translation for new
.
- copy
app/locales/en.ts
toapp/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
new
toALL_LANGS
; - add
new: "new lang"
toALL_LANG_OPTIONS
; - translate the strings in
new.ts
; - submit a pull request, and the author will merge it.