2021-09-01 07:49:35 +00:00
|
|
|
# How to translate
|
|
|
|
|
|
|
|
1. Fork this repo.
|
2021-09-15 18:52:39 +00:00
|
|
|
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
|
2021-09-15 19:16:22 +00:00
|
|
|
3. Run `npm run update-language-files`. You can also use this command to check if there are new strings to translate for your language.
|
2021-09-12 17:23:51 +00:00
|
|
|
4. Your language file should be filled in. You can translate now.
|
2021-11-04 15:19:31 +00:00
|
|
|
5. Translate `src/components/settings/Security.vue` (search for a `Confirm` component with `rel="confirmDisableAuth"`).
|
2021-09-12 17:23:51 +00:00
|
|
|
6. Import your language file in `src/i18n.js` and add it to `languageList` constant.
|
|
|
|
7. Make a [pull request](https://github.com/louislam/uptime-kuma/pulls) when you have done.
|
2021-09-03 09:09:11 +00:00
|
|
|
|
|
|
|
One of good examples:
|
|
|
|
https://github.com/louislam/uptime-kuma/pull/316/files
|
|
|
|
|
2021-09-01 13:37:56 +00:00
|
|
|
If you do not have programming skills, let me know in [Issues section](https://github.com/louislam/uptime-kuma/issues). I will assist you. 😏
|