summaryrefslogtreecommitdiff
path: root/src/router
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/router
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/router')
-rw-r--r--src/router/index.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/router/index.js b/src/router/index.js
index 9a30e976..dda4daf5 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -6,7 +6,7 @@ import AppLayout from '../layouts/AppLayout.vue';
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 @@ const routes = [
path: '',
component: () => import('@/views/Overview'),
meta: {
- title: 'pageTitle.overview'
+ title: 'appPageTitle.overview'
}
},
{
@@ -28,7 +28,7 @@ const routes = [
name: 'local-users',
component: () => import('@/views/AccessControl/LocalUserManagement'),
meta: {
- title: 'pageTitle.localUserMgmt'
+ title: 'appPageTitle.localUserManagement'
}
},
{
@@ -36,7 +36,7 @@ const routes = [
name: 'reboot-bmc',
component: () => import('@/views/Control/RebootBmc'),
meta: {
- title: 'pageTitle.rebootBmc'
+ title: 'appPageTitle.rebootBmc'
}
},
{
@@ -44,7 +44,7 @@ const routes = [
name: 'unauthorized',
component: () => import('@/views/Unauthorized'),
meta: {
- title: 'pageTitle.unauthorized'
+ title: 'appPageTitle.unauthorized'
}
}
]
@@ -54,7 +54,7 @@ const routes = [
name: 'login',
component: () => import('@/views/Login'),
meta: {
- title: 'pageTitle.login'
+ title: 'appPageTitle.login'
}
}
];