summaryrefslogtreecommitdiff
path: root/src/locales/es.json
diff options
context:
space:
mode:
authorYoshie Muranaka <yoshiemuranaka@gmail.com>2020-02-25 02:42:40 +0300
committerYoshie Muranaka <yoshiemuranaka@gmail.com>2020-02-26 23:39:55 +0300
commit547b5fc35b0f658f88414f8628f668af89f62734 (patch)
tree2bd051f3a16b05cd41995085e898651d76c18013 /src/locales/es.json
parent1b1c1005905c0d5a0145377718ad773fe08d0863 (diff)
downloadwebui-vue-547b5fc35b0f658f88414f8628f668af89f62734.tar.xz
Update language json structure
Restructure language file to use consistent pattern across pages following loose guidelines. - Create buckets for common global labels - Create common component objects–appHeader, appNavigation, appPageTitle - Page specific labels should be nested in an object with a key prefixed with 'page' followed by the page title - Any 'major' child components should be nested inside page specific objects - Avoid any complex linked locale messages - Alphabetize object keys, alphabetize nested properties at end of object block Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: Ie4222b3ce24dec7af31b55b5a77425ca2f492789
Diffstat (limited to 'src/locales/es.json')
-rw-r--r--src/locales/es.json45
1 files changed, 17 insertions, 28 deletions
diff --git a/src/locales/es.json b/src/locales/es.json
index 30d1fd17..48ed7748 100644
--- a/src/locales/es.json
+++ b/src/locales/es.json
@@ -1,38 +1,27 @@
{
"global": {
- "formField": {
- "validator": "Campo requerido"
+ "form": {
+ "fieldRequired": "Campo requerido"
}
},
- "login": {
- "language": {
- "label": "Idioma"
- },
- "languages": {
- "select": "Seleccione una opción",
- "english": "Inglés",
- "spanish": "Español"
- },
- "logIn": {
- "label": "Iniciar sesión"
- },
- "errorMsg": {
- "title": "Usuario o contraseña invalido.",
- "action": "Inténtalo de nuevo."
- },
- "password": {
- "label": "Contraseña",
- "validator": "@:global.formField.validator"
- },
- "username": {
- "label": "Nombre de usuario",
- "validator": "@:global.formField.validator"
- }
- },
- "pageTitle": {
+ "appPageTitle": {
"localUserMgmt": "Administración de usuarios locales",
"login": "Inicio de sesión",
"overview": "Información general",
"unauthorized": "No autorizado"
+ },
+ "pageLogin": {
+ "language": "Idioma",
+ "logIn": "Iniciar sesión",
+ "password": "Contraseña",
+ "username": "Nombre de usuario",
+ "alert": {
+ "title": "Usuario o contraseña invalido.",
+ "action": "Inténtalo de nuevo."
+ },
+ "form": {
+ "english": "Inglés",
+ "spanish": "Español"
+ }
}
} \ No newline at end of file