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/router/index.js b/src/router/index.js
index 9a30e97..dda4daf 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -6,7 +6,7 @@
Vue.use(VueRouter);
// Meta title is translated using i18n in App.vue and PageTitle.Vue
-// Example meta: {title: 'pageTitle.overview'}
+// Example meta: {title: 'appPageTitle.overview'}
const routes = [
{
path: '/',
@@ -20,7 +20,7 @@
path: '',
component: () => import('@/views/Overview'),
meta: {
- title: 'pageTitle.overview'
+ title: 'appPageTitle.overview'
}
},
{
@@ -28,7 +28,7 @@
name: 'local-users',
component: () => import('@/views/AccessControl/LocalUserManagement'),
meta: {
- title: 'pageTitle.localUserMgmt'
+ title: 'appPageTitle.localUserManagement'
}
},
{
@@ -36,7 +36,7 @@
name: 'reboot-bmc',
component: () => import('@/views/Control/RebootBmc'),
meta: {
- title: 'pageTitle.rebootBmc'
+ title: 'appPageTitle.rebootBmc'
}
},
{
@@ -44,7 +44,7 @@
name: 'unauthorized',
component: () => import('@/views/Unauthorized'),
meta: {
- title: 'pageTitle.unauthorized'
+ title: 'appPageTitle.unauthorized'
}
}
]
@@ -54,7 +54,7 @@
name: 'login',
component: () => import('@/views/Login'),
meta: {
- title: 'pageTitle.login'
+ title: 'appPageTitle.login'
}
}
];