We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca29558 commit 6014b76Copy full SHA for 6014b76
docs/translation.md
@@ -0,0 +1,12 @@
1
+# How to add a new translation?
2
+
3
+Assume that we are adding a new translation for `new`.
4
5
+1. copy `app/locales/en.ts` to `app/locales/new.ts`;
6
+2. edit `new.ts`, change `const en: LocaleType = ` to `const new: PartialLocaleType`, and `export default new;`;
7
+3. edit `app/locales/index.ts`:
8
+4. `import new from './new.ts'`;
9
+5. add `new` to `ALL_LANGS`;
10
+6. add `new: "new lang"` to `ALL_LANG_OPTIONS`;
11
+7. translate the strings in `new.ts`;
12
+8. submit a pull request, and the author will merge it.
0 commit comments