mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-10-30 11:10:40 +00:00
Add language to src/main and update README
This commit is contained in:
parent
d2bf2a551d
commit
23f1a73fc8
3 changed files with 6 additions and 3 deletions
|
@ -4,8 +4,9 @@
|
||||||
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
|
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`
|
3. `npm run update-language-files --base-lang=de-DE`
|
||||||
6. Your language file should be filled in. You can translate now.
|
6. Your language file should be filled in. You can translate now.
|
||||||
7. Translate `src/pages/Settings.vue` (search for a `Confirm` component with `rel="confirmDisableAuth"`)
|
7. Translate `src/pages/Settings.vue` (search for a `Confirm` component with `rel="confirmDisableAuth"`).
|
||||||
8. Make a [pull request](https://github.com/louislam/uptime-kuma/pulls) when you have done.
|
8. Import your language file in `src/main.js` and add it to `languageList` constant.
|
||||||
|
9. 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 [Issues section](https://github.com/louislam/uptime-kuma/issues). I will assist you. 😏
|
If you do not have programming skills, let me know in [Issues section](https://github.com/louislam/uptime-kuma/issues). I will assist you. 😏
|
||||||
|
|
||||||
|
|
|
@ -84,7 +84,7 @@ export default {
|
||||||
"New Password": "Nueva contraseña",
|
"New Password": "Nueva contraseña",
|
||||||
"Repeat New Password": "Repetir nueva contraseña",
|
"Repeat New Password": "Repetir nueva contraseña",
|
||||||
"Update Password": "Actualizar contraseña",
|
"Update Password": "Actualizar contraseña",
|
||||||
"Disable Auth": "deshabilitar Autenticación ",
|
"Disable Auth": "Deshabilitar Autenticación ",
|
||||||
"Enable Auth": "Habilitar Autenticación ",
|
"Enable Auth": "Habilitar Autenticación ",
|
||||||
Logout: "Cerrar sesión",
|
Logout: "Cerrar sesión",
|
||||||
Leave: "Salir",
|
Leave: "Salir",
|
||||||
|
|
|
@ -26,6 +26,7 @@ import { appName } from "./util.ts";
|
||||||
import en from "./languages/en";
|
import en from "./languages/en";
|
||||||
import zhHK from "./languages/zh-HK";
|
import zhHK from "./languages/zh-HK";
|
||||||
import deDE from "./languages/de-DE";
|
import deDE from "./languages/de-DE";
|
||||||
|
import esEs from "./languages/es-ES";
|
||||||
import fr from "./languages/fr";
|
import fr from "./languages/fr";
|
||||||
import ja from "./languages/ja";
|
import ja from "./languages/ja";
|
||||||
import daDK from "./languages/da-DK";
|
import daDK from "./languages/da-DK";
|
||||||
|
@ -99,6 +100,7 @@ const languageList = {
|
||||||
en,
|
en,
|
||||||
"zh-HK": zhHK,
|
"zh-HK": zhHK,
|
||||||
"de-DE": deDE,
|
"de-DE": deDE,
|
||||||
|
"es-ES": esEs,
|
||||||
"fr": fr,
|
"fr": fr,
|
||||||
"ja": ja,
|
"ja": ja,
|
||||||
"da-DK": daDK,
|
"da-DK": daDK,
|
||||||
|
|
Loading…
Reference in a new issue