chore: update to nuxt 3.20 (#4992)

* feat: nuxt 3.14 → 3.15.4

* feat: nuxt 3.15.4 → 3.16.2 (vite 6)

* feat: bump nuxt-i18n

* feat: nuxt 3.20

* fix: lint

* feat: use rolldown-vite

* fix: shut the fuck up

* fix: silence for app as well

* fix: vue-router mismatch

---------

Signed-off-by: Calum H. <contact@cal.engineer>
This commit is contained in:
Calum H.
2025-12-30 15:06:52 +00:00
committed by GitHub
parent 1a16d61511
commit b07a1659b4
31 changed files with 6760 additions and 6660 deletions

View File

@@ -27,6 +27,9 @@ export interface LocaleDefinition {
code: string
name: string
dir?: 'ltr' | 'rtl'
// For @nuxtjs/i18n v9 compatibility
iso?: string
file?: string
}
export const LOCALES: LocaleDefinition[] = [
@@ -117,7 +120,7 @@ export function buildLocaleMessages(
): Record<string, Record<string, string>> {
const messages: Record<string, Record<string, string>> = {}
for (const [path, module] of Object.entries(modules)) {
// Extract locale code from path like './locales/en-US/index.json'
// Extract locale code from path like './locales/en-US/index.json' or './src/locales/en-US/index.json'
const match = path.match(/\/([^/]+)\/index\.json$/)
if (match) {
const locale = match[1]