Fix languages after 80322cbfe7

Fix ESLint deprecated warning. Update `README.md` for  languages. Update `update-language-files` script
This commit is contained in:
Adam Stachowicz
2021-09-15 20:52:39 +02:00
parent 72783fd94c
commit 79920b5f2c
11 changed files with 47 additions and 48 deletions

View File

@@ -1,8 +1,8 @@
# How to translate
1. Fork this repo.
2. Create a language file. (e.g. `zh-TW.js`) The filename must be ISO language code: http://www.lingoes.net/en/translator/langcode.htm
3. `npm run update-language-files --base-lang=de-DE`
2. Create a language file (e.g. `zh-TW.js`). The filename must be ISO language code: http://www.lingoes.net/en/translator/langcode.htm
3. `npm run update-language-files --base-lang=en`
4. Your language file should be filled in. You can translate now.
5. Translate `src/pages/Settings.vue` (search for a `Confirm` component with `rel="confirmDisableAuth"`).
6. Import your language file in `src/i18n.js` and add it to `languageList` constant.