feat: clerk localization and no language routes

This commit is contained in:
2026-01-14 20:00:42 +01:00
parent 613c5b24da
commit 0315e72c48
6 changed files with 84 additions and 27 deletions

View File

@@ -1,5 +1,6 @@
import tailwindcss from "@tailwindcss/vite";
import { shadcn } from "@clerk/themes";
import { esES } from "@clerk/localizations";
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
compatibilityDate: "2025-07-15",
@@ -34,7 +35,7 @@ export default defineNuxtConfig({
],
defaultLocale: "en",
langDir: "locales",
strategy: "prefix_except_default",
strategy: "no_prefix",
detectBrowserLanguage: {
useCookie: true,
cookieKey: "i18n_locale",
@@ -60,9 +61,6 @@ export default defineNuxtConfig({
websocket: true,
},
},
clerk: {
appearance: {
theme: shadcn,
},
},
// moved clerk config to clerk-locale.client.ts
clerk: {},
});