I want to translate my app English to German. on the language change event, I wrote this code
changeLocale (locale) {
i18n.locale = locale.language
VueCookies.set('UserLanguage', locale.language)
// window.location.reload() this one is reloading page
this.$root.reload() // this one is not working
},
and I want to translate this data in vuejs file :
DashboardData: [{'name': this.$t('IVR')}, {'name': this.$t('DTML')}, {'name': this.$t('SSH')}]
if I do window.location.reload(), it's working perfectly but I don't want to reload the page so, I am thinking to reload root in vue, I am not sure about this.
Is there any way to reload the root element or all property of the whole app?