Bobakanoosh
Explore posts from serversi18n language auto detection not working
I have users telling me my site doesn't automatically detect their language.
I tried switching my browser and browser language to spanish, and it doesn't work (on ANY site, even google?).
My Accept-Language header is
es-ES,en-US;q=0.7,en;q=0.3
My navigator.language is es-ES
But no matter what when I delete the i18n_redirected
cookie, it recreates it en "en".
What setting do I need to change on chrome for a site to auto detect my language?5 replies
nuxt-i18n dynamically load translations
I want to make it easier for people helping translate my site by giving them an embedded JSON editor that as they change, updates the site. That way they can visually see where their translations are going.
Any idea how I could accomplish this?
23 replies
useCookie() not working
Maybe this is expected behavior. If not, I'll make a Github issue
I have
{ swr: true }
in a route rule. When on that route, when trying to use useCookie
, the cookie doesn't persist.
Here's a minimal reproduction:
https://stackblitz.com/edit/github-pvvuiv-4zjjl5?file=nuxt.config.ts,app.vue1 replies
swr: true breaks useCookie
Maybe this is expected behavior. If not, I'll make a Github issue
I have
{ swr: true }
in a route rule. When on that route, when trying to use useCookie
, the cookie doesn't persist.
Here's a minimal reproduction:
https://stackblitz.com/edit/github-pvvuiv-4zjjl5?file=nuxt.config.ts,app.vue1 replies
Debug dev server warmup speed & build speed
Is there a way to debug the dev server warmup speed & build speed? Both of mine are very slow (80 seconds) but I have no idea whats causing it.
Vite client warmed up in 80606ms 7:03:33 PM
Vite server warmed up in 80820ms 7:03:33 PM
3 replies
How to name route file *not* index.get.ts, etc
Is there a way to still use the folder-based api routes, but not name files
index
? I'm really used to navigating projects by just searching the files, not using the file tree.
I see that I could do posts.get.ts
, but having folders like /posts/
is nice too for related helper functions, etc1 replies