Nuxt content / i18n / useAsyncData
Hello,
upgraded from nuxt3 to nuxt4 and everything works really fine except for something regarding content/i18n
My website is in EN and FR and also all the content pages:
content/blog <- md in english
content/fr <- md in french
I use useAsyncData to fetch articles in english or french.
The issue I am facing is when switching languages, it does not change the language of the article (before it was the case with nuxt3). On page load, there are no issues at all if I got the correct language set.
I think is has something to do with the change on useAsyncData but did not find anything yet
This is my composable for the article list
upgraded from nuxt3 to nuxt4 and everything works really fine except for something regarding content/i18n
My website is in EN and FR and also all the content pages:
content/blog <- md in english
content/fr <- md in french
I use useAsyncData to fetch articles in english or french.
The issue I am facing is when switching languages, it does not change the language of the article (before it was the case with nuxt3). On page load, there are no issues at all if I got the correct language set.
I think is has something to do with the change on useAsyncData but did not find anything yet
This is my composable for the article list
