Closed lvl99wzrd closed 3 years ago
Hi,
I wonder if there's a function that returns the current active locale index and name? I'm trying to use this.$i18n.locale but it is undefined.
this.$i18n.locale
I need to know the current locale for conditional component rendering.
Thank you.
Ah no worries. I was stupid to use this.i18n.locale inside the template tag, it should be $i18n.locale.
this.i18n.locale
$i18n.locale
Hi,
I wonder if there's a function that returns the current active locale index and name? I'm trying to use
this.$i18n.locale
but it is undefined.I need to know the current locale for conditional component rendering.
Thank you.