diff options
author | Yoshie Muranaka <yoshiemuranaka@gmail.com> | 2020-02-25 02:42:40 +0300 |
---|---|---|
committer | Yoshie Muranaka <yoshiemuranaka@gmail.com> | 2020-02-26 23:39:55 +0300 |
commit | 547b5fc35b0f658f88414f8628f668af89f62734 (patch) | |
tree | 2bd051f3a16b05cd41995085e898651d76c18013 /src/components | |
parent | 1b1c1005905c0d5a0145377718ad773fe08d0863 (diff) | |
download | webui-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/components')
-rw-r--r-- | src/components/Global/InputPasswordToggle.vue | 2 | ||||
-rw-r--r-- | src/components/Global/TableToolbar.vue | 4 | ||||
-rw-r--r-- | src/components/Mixins/BVToastMixin.js | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/components/Global/InputPasswordToggle.vue b/src/components/Global/InputPasswordToggle.vue index 8c522525..3199cab3 100644 --- a/src/components/Global/InputPasswordToggle.vue +++ b/src/components/Global/InputPasswordToggle.vue @@ -2,7 +2,7 @@ <div class="input-password-toggle-container"> <slot></slot> <b-button - :aria-label="$t('ariaLabels.showPassword')" + :aria-label="$t('global.ariaLabel.showPassword')" variant="link" :class="{ isVisible: isVisible }" @click="toggleVisibility" diff --git a/src/components/Global/TableToolbar.vue b/src/components/Global/TableToolbar.vue index fc3736db..e28151cb 100644 --- a/src/components/Global/TableToolbar.vue +++ b/src/components/Global/TableToolbar.vue @@ -3,7 +3,7 @@ <div v-if="isToolbarActive" class="toolbar-container"> <div class="toolbar-content"> <p class="toolbar-selected"> - {{ selectedItemsCount }} {{ $t('global.actions.selected') }} + {{ selectedItemsCount }} {{ $t('global.action.selected') }} </p> <div class="toolbar-actions d-flex"> <b-button @@ -20,7 +20,7 @@ class="d-block" @click="$emit('clearSelected')" > - {{ $t('global.actions.cancel') }} + {{ $t('global.action.cancel') }} </b-button> </div> </div> diff --git a/src/components/Mixins/BVToastMixin.js b/src/components/Mixins/BVToastMixin.js index a46f5e50..4fedc9a4 100644 --- a/src/components/Mixins/BVToastMixin.js +++ b/src/components/Mixins/BVToastMixin.js @@ -2,7 +2,7 @@ import i18n from '../../i18n'; const BVToastMixin = { methods: { - successToast(message, title = i18n.t('global.response.success')) { + successToast(message, title = i18n.t('global.status.success')) { this.$root.$bvToast.toast(message, { title, variant: 'success', @@ -11,7 +11,7 @@ const BVToastMixin = { solid: true }); }, - errorToast(message, title = i18n.t('global.response.error')) { + errorToast(message, title = i18n.t('global.status.error')) { this.$root.$bvToast.toast(message, { title, variant: 'danger', @@ -20,7 +20,7 @@ const BVToastMixin = { solid: true }); }, - warningToast(message, title = i18n.t('global.response.warning')) { + warningToast(message, title = i18n.t('global.status.warning')) { this.$root.$bvToast.toast(message, { title, variant: 'warning', |