From 547b5fc35b0f658f88414f8628f668af89f62734 Mon Sep 17 00:00:00 2001 From: Yoshie Muranaka Date: Mon, 24 Feb 2020 15:42:40 -0800 Subject: Update language json structure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Change-Id: Ie4222b3ce24dec7af31b55b5a77425ca2f492789 --- src/locales/es.json | 45 +++++++++++++++++---------------------------- 1 file changed, 17 insertions(+), 28 deletions(-) (limited to 'src/locales/es.json') 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 -- cgit v1.2.3