mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2024-11-21 03:20:57 +08:00
491 B
491 B
How to add a new translation?
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.