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
diff --git a/src/locales/es.json b/src/locales/es.json
index 30d1fd1..48ed774 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