[Bug]: Translations
DmytroIvantsov opened this issue · comments
Dmytro Ivantsov commented
Expected Behavior
I think translations must be updated dynamically when the page language changed
Current Behavior
Nuxt 3, i18n, translations are not updated dynamically when the page language is changed, even if the page's lang attribute has been changed.
Steps to reproduce
- Open page
- Change language without page reloading
- There are no translations in the cookie settings window
Proposed fix or additional info.
No response
Version
3.0.1
On which browser do you see the issue?
No response
Orest Bida commented
The plugin is vanilla js, you need to manually call .setLanguage()
as it's not aware of the changes outside, unless you reload the page: demo
Dmytro Ivantsov commented
Thank you, @orestbida