Browse Source

feat: add i18n to authTab.vue

Signed-off-by: Wing-Kam Wong <wingkwong.code@gmail.com>
pull/271/head
Wing-Kam Wong 4 years ago
parent
commit
af352ed0a3
  1. 16
      packages/nc-gui/components/authTab.vue
  2. 5
      packages/nc-gui/static/lang/en.json
  3. 5
      packages/nc-gui/static/lang/ja.json
  4. 5
      packages/nc-gui/static/lang/zh.json

16
packages/nc-gui/components/authTab.vue

@ -4,18 +4,27 @@
<div class="h-100" style="width: 100%">
<v-tabs height="30" color="x-active">
<v-tab><span class="caption text-capitalize">Users Management</span></v-tab>
<v-tab><span class="caption text-capitalize">
<!-- Users Management -->
{{ $t('management.tabs.user')}}
</span></v-tab>
<v-tab-item class="h-100">
<user-management :nodes="nodes"></user-management>
</v-tab-item>
<template v-if="_isUIAllowed('apiTokenTab')">
<v-tab><span class="caption text-capitalize">API Tokens Management</span></v-tab>
<v-tab><span class="caption text-capitalize">
<!-- API Tokens Management -->
{{ $t('management.tabs.api')}}
</span></v-tab>
<v-tab-item>
<api-tokens :nodes="nodes"></api-tokens>
</v-tab-item>
</template>
<v-tab><span class="caption text-capitalize">Roles Management</span></v-tab>
<v-tab><span class="caption text-capitalize">
<!-- Roles Management -->
{{ $t('management.tabs.roles')}}
</span></v-tab>
<v-tab-item>
<roles :nodes="nodes"></roles>
</v-tab-item>
@ -81,6 +90,7 @@ export default {
*
* @author Naveen MR <oof1lab@gmail.com>
* @author Pranav C Balan <pranavxc@gmail.com>
* @author Wing-Kam Wong <wingkwong.code@gmail.com>
*
* @license GNU AGPL version 3 or any later version
*

5
packages/nc-gui/static/lang/en.json

@ -112,5 +112,8 @@
"nav_drawer.share_view.toggle.option1": "Restrict access with a password",
"nav_drawer.share_view.toggle.option2": "Access is password restricted",
"nav_drawer.share_view.password.caption": "Enter the password",
"nav_drawer.share_view.password.button": "Save password"
"nav_drawer.share_view.password.button": "Save password",
"management.tabs.user": "Users Management",
"management.tabs.api": "API Tokens Management",
"management.tabs.roles": "Roles Management"
}

5
packages/nc-gui/static/lang/ja.json

@ -112,5 +112,8 @@
"nav_drawer.share_view.toggle.option1": "Restrict access with a password",
"nav_drawer.share_view.toggle.option2": "Access is password restricted",
"nav_drawer.share_view.password.caption": "Enter the password",
"nav_drawer.share_view.password.button": "Save password"
"nav_drawer.share_view.password.button": "Save password",
"management.tabs.user": "Users Management",
"management.tabs.api": "API Tokens Management",
"management.tabs.roles": "Roles Management"
}

5
packages/nc-gui/static/lang/zh.json

@ -112,6 +112,9 @@
"nav_drawer.share_view.toggle.option1": "Restrict access with a password",
"nav_drawer.share_view.toggle.option2": "Access is password restricted",
"nav_drawer.share_view.password.caption": "Enter the password",
"nav_drawer.share_view.password.button": "Save password"
"nav_drawer.share_view.password.button": "Save password",
"management.tabs.user": "Users Management",
"management.tabs.api": "API Tokens Management",
"management.tabs.roles": "Roles Management"
}
Loading…
Cancel
Save