5

I tried with this.$i18n.locale but that only gives me the browser's locale, not the current language being used (I have a default local fallback) Something like this.$i18n.currentLanguage doesn't seem to exist

germi
  • 95
  • 5

2 Answers2

0

You could check the current lang setting first a item in local storage and get it's item:

How to save current language (i18n) in localstorage (Vue)

0

You Can use This trick will help you!

this.$root.$i18n.locale
Sayed Mohamed
  • 173
  • 1
  • 6