Bobakanoosh
Bobakanoosh
Explore posts from servers
NNuxt
Created by Bobakanoosh on 9/21/2024 in #❓・help
i18n 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
NNuxt
Created by Bobakanoosh on 5/10/2024 in #❓・help
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
NNuxt
Created by Bobakanoosh on 4/21/2024 in #❓・help
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.vue
1 replies
NNuxt
Created by Bobakanoosh on 4/19/2024 in #❓・help
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.vue
1 replies
NNuxt
Created by Bobakanoosh on 3/2/2024 in #❓・help
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
------------------------------
- Operating System: Windows_NT
- Node Version: v20.11.0
- Nuxt Version: 3.9.3
- CLI Version: 3.10.1
- Nitro Version: 2.9.1
- Package Manager: [email protected]
- Builder: -
- User Config: runtimeConfig, modules, vite, devServer, nitro, googleFonts, serverDir, imports, vue, css, devtools, experimental, srcDir, image, sourcemap, features, alias
- Runtime Modules: @pinia/[email protected], [email protected], @vueuse/[email protected], @unocss/[email protected], radix-vue/nuxt, [email protected], @nuxtjs/[email protected], @nuxt/[email protected]
- Build Modules: -
------------------------------
------------------------------
- Operating System: Windows_NT
- Node Version: v20.11.0
- Nuxt Version: 3.9.3
- CLI Version: 3.10.1
- Nitro Version: 2.9.1
- Package Manager: [email protected]
- Builder: -
- User Config: runtimeConfig, modules, vite, devServer, nitro, googleFonts, serverDir, imports, vue, css, devtools, experimental, srcDir, image, sourcemap, features, alias
- Runtime Modules: @pinia/[email protected], [email protected], @vueuse/[email protected], @unocss/[email protected], radix-vue/nuxt, [email protected], @nuxtjs/[email protected], @nuxt/[email protected]
- Build Modules: -
------------------------------
3 replies
NNuxt
Created by Bobakanoosh on 6/12/2023 in #❓・help
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, etc
1 replies
NNuxt
Created by Bobakanoosh on 12/9/2022 in #❓・help
API Routes - Nested dynamic parameters
No description
2 replies