auto-i18n-plugin-core 0.0.15 → 0.0.16
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.
- package/dist/index.cjs +4 -4
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +4 -4
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -220,7 +220,7 @@ var index$2 = /*#__PURE__*/Object.freeze({
|
|
|
220
220
|
/*
|
|
221
221
|
* @Author: xiaoshanwen
|
|
222
222
|
* @Date: 2023-10-26 17:34:47
|
|
223
|
-
* @LastEditTime: 2025-02-11
|
|
223
|
+
* @LastEditTime: 2025-02-11 23:09:10
|
|
224
224
|
* @FilePath: /i18n_translation_vite/packages/autoI18nPluginCore/src/option.ts
|
|
225
225
|
*/
|
|
226
226
|
/**
|
|
@@ -233,9 +233,9 @@ const DEFAULT_OPTION = {
|
|
|
233
233
|
excludedCall: ['$i8n', 'require', '$$i8n', 'console.log', '$t'],
|
|
234
234
|
/** 标记不用翻译的字符串模式数组,默认是匹配文件扩展名 */
|
|
235
235
|
excludedPattern: [/\.\w+$/],
|
|
236
|
-
/**
|
|
237
|
-
excludedPath: [],
|
|
238
|
-
/**
|
|
236
|
+
/** 排查不需要翻译的目录下的文件路径(黑名单), 默认不处理node_modules */
|
|
237
|
+
excludedPath: ['node_modules'],
|
|
238
|
+
/** 指定需要翻译文件的目录路径正则(白名单) */
|
|
239
239
|
includePath: [/src\//],
|
|
240
240
|
/** 配置文件生成位置,默认为 './lang' */
|
|
241
241
|
globalPath: './lang',
|
package/dist/index.d.ts
CHANGED
|
@@ -66,9 +66,9 @@ declare const DEFAULT_OPTION: {
|
|
|
66
66
|
excludedCall: string[];
|
|
67
67
|
/** 标记不用翻译的字符串模式数组,默认是匹配文件扩展名 */
|
|
68
68
|
excludedPattern: RegExp[];
|
|
69
|
-
/**
|
|
69
|
+
/** 排查不需要翻译的目录下的文件路径(黑名单), 默认不处理node_modules */
|
|
70
70
|
excludedPath: string[];
|
|
71
|
-
/**
|
|
71
|
+
/** 指定需要翻译文件的目录路径正则(白名单) */
|
|
72
72
|
includePath: RegExp[];
|
|
73
73
|
/** 配置文件生成位置,默认为 './lang' */
|
|
74
74
|
globalPath: string;
|
package/dist/index.mjs
CHANGED
|
@@ -199,7 +199,7 @@ var index$2 = /*#__PURE__*/Object.freeze({
|
|
|
199
199
|
/*
|
|
200
200
|
* @Author: xiaoshanwen
|
|
201
201
|
* @Date: 2023-10-26 17:34:47
|
|
202
|
-
* @LastEditTime: 2025-02-11
|
|
202
|
+
* @LastEditTime: 2025-02-11 23:09:10
|
|
203
203
|
* @FilePath: /i18n_translation_vite/packages/autoI18nPluginCore/src/option.ts
|
|
204
204
|
*/
|
|
205
205
|
/**
|
|
@@ -212,9 +212,9 @@ const DEFAULT_OPTION = {
|
|
|
212
212
|
excludedCall: ['$i8n', 'require', '$$i8n', 'console.log', '$t'],
|
|
213
213
|
/** 标记不用翻译的字符串模式数组,默认是匹配文件扩展名 */
|
|
214
214
|
excludedPattern: [/\.\w+$/],
|
|
215
|
-
/**
|
|
216
|
-
excludedPath: [],
|
|
217
|
-
/**
|
|
215
|
+
/** 排查不需要翻译的目录下的文件路径(黑名单), 默认不处理node_modules */
|
|
216
|
+
excludedPath: ['node_modules'],
|
|
217
|
+
/** 指定需要翻译文件的目录路径正则(白名单) */
|
|
218
218
|
includePath: [/src\//],
|
|
219
219
|
/** 配置文件生成位置,默认为 './lang' */
|
|
220
220
|
globalPath: './lang',
|