Refresh problem of nuxt + i18n language switching

nuxt + i18n uses cookies to save the language configuration, how to return the corresponding language pack document when refreshing? What I am writing by default is that cn, manually sets cookie to en, page refresh will appear first cn, and then switch to en, has a jitter process

want to achieve an effect similar to Aliyun"s official website

Jun.10,2021

use the usage recommended by official documents


i18n needs to be registered on the VUE root instance. There is no root instance in nuxt'. How do you set it?


have you solved your problem

Menu