marinaaisa/nuxt-markdown-blog-starter

[i-18n] The problem of switching languages and then refreshing the page and then going back to the default language

PLQin opened this issue · 0 comments

PLQin commented

如题,自己也尝试做了一些修改,但是没成功。主要是遇到了这个问题,导致我无法在页面刷新时获得Cookie中的language来初始化设置语言 :

If the page is refreshed after switching the new language, the language displayed on the page will be changed back to the default language .
I also tried to make some modifications, but it was useless . Mainly because of this problem, I was unable to get the language in the Cookie to initialize the setting language when the page was refreshed:

image


求解惑,十万分感谢!
It would be very kind of you to help me!