@geekron/strapi 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -201,7 +201,7 @@ export const translations = (config?: TranslationsConfig): Record<string, Record
|
|
|
201
201
|
|
|
202
202
|
// @ts-ignore
|
|
203
203
|
// 自动加载默认翻译目录
|
|
204
|
-
const defaultModules = import.meta.glob('
|
|
204
|
+
const defaultModules = import.meta.glob('./*\/**\/*.json', { eager: true, import: 'default' });
|
|
205
205
|
|
|
206
206
|
// 收集所有模块(默认目录在前,自定义目录在后,确保自定义目录覆盖默认目录)
|
|
207
207
|
const allModuleSources = [
|
|
@@ -201,7 +201,7 @@ export const translations = (config?: TranslationsConfig): Record<string, Record
|
|
|
201
201
|
|
|
202
202
|
// @ts-ignore
|
|
203
203
|
// 自动加载默认翻译目录
|
|
204
|
-
const defaultModules = import.meta.glob('
|
|
204
|
+
const defaultModules = import.meta.glob('./*\/**\/*.json', { eager: true, import: 'default' });
|
|
205
205
|
|
|
206
206
|
// 收集所有模块(默认目录在前,自定义目录在后,确保自定义目录覆盖默认目录)
|
|
207
207
|
const allModuleSources = [
|