You've already forked AstralRinth
forked from didirus/AstralRinth
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:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user