diff options
Diffstat (limited to 'src/components/Global/InputPasswordToggle.vue')
-rw-r--r-- | src/components/Global/InputPasswordToggle.vue | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/components/Global/InputPasswordToggle.vue b/src/components/Global/InputPasswordToggle.vue index cd869206..fadb99af 100644 --- a/src/components/Global/InputPasswordToggle.vue +++ b/src/components/Global/InputPasswordToggle.vue @@ -18,6 +18,7 @@ <script> import IconView from '@carbon/icons-vue/es/view/20'; import IconViewOff from '@carbon/icons-vue/es/view--off/20'; +import i18n from '@/i18n'; export default { name: 'InputPasswordToggle', @@ -25,7 +26,7 @@ export default { data() { return { isVisible: false, - togglePasswordLabel: this.$t('global.ariaLabel.showPassword'), + togglePasswordLabel: i18n.global.t('global.ariaLabel.showPassword'), }; }, methods: { @@ -40,8 +41,12 @@ export default { } this.isVisible - ? (this.togglePasswordLabel = this.$t('global.ariaLabel.hidePassword')) - : (this.togglePasswordLabel = this.$t('global.ariaLabel.showPassword')); + ? (this.togglePasswordLabel = i18n.global.t( + 'global.ariaLabel.hidePassword', + )) + : (this.togglePasswordLabel = i18n.global.t( + 'global.ariaLabel.showPassword', + )); }, }, }; |