Merge pull request #2265 from Saibamen/patch-1

Add info about `npm install` to translators
This commit is contained in:
Louis Lam 2022-10-25 14:32:43 +08:00 committed by GitHub
commit e579610426
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,13 +1,14 @@
# How to translate # How to translate
1. Fork this repo. 1. Fork this repo.
2. Run `npm run update-language-files --language=<code>` where `<code>` 2. Run `npm install`
3. Run `npm run update-language-files --language=<code>` where `<code>`
is a valid ISO language code: is a valid ISO language code:
http://www.lingoes.net/en/translator/langcode.htm. You can also use http://www.lingoes.net/en/translator/langcode.htm. You can also use
this command to check if there are new strings to this command to check if there are new strings to
translate for your language. translate for your language.
3. Your language file should be filled in. You can translate now. 4. Your language file should be filled in. You can translate now.
4. Add it into `languageList` constant. 5. Add it into `languageList` constant.
5. Make a [pull request](https://github.com/louislam/uptime-kuma/pulls) when you have done. 6. Make a [pull request](https://github.com/louislam/uptime-kuma/pulls) when you have done.
If you do not have programming skills, let me know in [the issues section](https://github.com/louislam/uptime-kuma/issues). I will assist you. 😏 If you do not have programming skills, let me know in [the issues section](https://github.com/louislam/uptime-kuma/issues). I will assist you. 😏