Add language to src/main and update README

pull/316/head
Victor M. Vicente Cuevas 3 years ago
parent d2bf2a551d
commit 23f1a73fc8

@ -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
3. `npm run update-language-files --base-lang=de-DE`
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"`)
8. Make a [pull request](https://github.com/louislam/uptime-kuma/pulls) when you have done.
7. Translate `src/pages/Settings.vue` (search for a `Confirm` component with `rel="confirmDisableAuth"`).
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. 😏

@ -84,7 +84,7 @@ export default {
"New Password": "Nueva contraseña",
"Repeat New Password": "Repetir nueva contraseña",
"Update Password": "Actualizar contraseña",
"Disable Auth": "deshabilitar Autenticación ",
"Disable Auth": "Deshabilitar Autenticación ",
"Enable Auth": "Habilitar Autenticación ",
Logout: "Cerrar sesión",
Leave: "Salir",

@ -26,6 +26,7 @@ import { appName } from "./util.ts";
import en from "./languages/en";
import zhHK from "./languages/zh-HK";
import deDE from "./languages/de-DE";
import esEs from "./languages/es-ES";
import fr from "./languages/fr";
import ja from "./languages/ja";
import daDK from "./languages/da-DK";
@ -99,6 +100,7 @@ const languageList = {
en,
"zh-HK": zhHK,
"de-DE": deDE,
"es-ES": esEs,
"fr": fr,
"ja": ja,
"da-DK": daDK,

Loading…
Cancel
Save