You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 19, 2022. It is now read-only.
According to this comment to a ticket, it seems like the language property isn't observable. This leads to some issues with bootstrap-vue. Is there a simple way to fix that issue?
The text was updated successfully, but these errors were encountered:
For a quick fix, you can use this.$i18n.i18nLoadedAt && this.$i18n.i18next.language).
Explanation
A priory anything on the i18next object is not reactive, because it is completely unrelated to vue. @panter/vue-i18next does add the property $i18n and gives you exactly one reactive element: i18nLoadedAt. Whenever i18next emits an event languageChanged or loaded, that value is updated. Now $t accesses i18nLoadedAt and is thus also reactively updated on those events.
Feature Request
Please also provide a reactive property language on $i18n, that is updated on the languageChanged event. This way anything in the application can use the current locale reactively.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
According to this comment to a ticket, it seems like the language property isn't observable. This leads to some issues with bootstrap-vue. Is there a simple way to fix that issue?
The text was updated successfully, but these errors were encountered: