Remove i18n module import from Profile settings
Update translation to use the global $t component method provided
by the i18n plugin.
Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com>
Change-Id: I0f1de15b19820e3235187fb4c4c51befa67005e4
diff --git a/src/views/ProfileSettings/ProfileSettings.vue b/src/views/ProfileSettings/ProfileSettings.vue
index 3b0bdc2..820d386 100644
--- a/src/views/ProfileSettings/ProfileSettings.vue
+++ b/src/views/ProfileSettings/ProfileSettings.vue
@@ -128,7 +128,6 @@
</template>
<script>
-import i18n from '@/i18n';
import BVToastMixin from '@/components/Mixins/BVToastMixin';
import InputPasswordToggle from '@/components/Global/InputPasswordToggle';
import { maxLength, minLength, sameAs } from 'vuelidate/lib/validators';
@@ -209,7 +208,7 @@
localStorage.setItem('storedUtcDisplay', this.form.isUtcDisplay);
this.$store.commit('global/setUtcTime', this.form.isUtcDisplay);
this.successToast(
- i18n.t('pageProfileSettings.toast.successSaveSettings')
+ this.$t('pageProfileSettings.toast.successSaveSettings')
);
},
submitForm() {