Skip to content

Commit 95cafe8

Browse files
committed
fix(i18n): update glob patterns for Vite 8 compatibility
1 parent e705101 commit 95cafe8

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • spring-boot-admin-server-ui/src/main/frontend/i18n

spring-boot-admin-server-ui/src/main/frontend/i18n/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ import { createI18n } from 'vue-i18n';
33

44
import sbaConfig from '@/sba-config';
55

6-
const context = import.meta.glob('../**/(*.)?i18n.*.json', { eager: true });
6+
// Use array of patterns instead of extglob (not supported in Vite 8/Rolldown)
7+
const context = import.meta.glob(['../**/i18n.*.json', '../**/*.i18n.*.json'], {
8+
eager: true,
9+
});
710
const messages = Object.keys(context)
811
.map((key) => {
912
const localeFromFile = /\.*i18n\.?([^/]*)\.json$/.exec(key);

0 commit comments

Comments
 (0)