auto-i18n-plugin-core 1.1.7 → 1.1.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "auto-i18n-plugin-core",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "description": "vite, webpack automatic translation plugin core code.",
5
5
  "keywords": [
6
6
  "i18n",
package/readme-en.md CHANGED
@@ -348,7 +348,8 @@ import '../lang/index.js' // 📍 Must be imported on the first line of the entr
348
348
  | deepScan | boolean | ❌ | `false` | Experimental: Whether to perform deep string scanning |
349
349
  | commonTranslateKey | string | ❌ | `''` | General translation key |
350
350
  | insertFileExtensions | string[] | ❌ | `[]` | List of file extensions to insert translation code into |
351
- | isClear | boolean | ❌ | `false` | Whether to clear content not in context (clear source language key-value pairs not in context) |
351
+ | isClear | boolean | ❌ | `false` | Whether to clear content not in context (clear source language key-value pairs not in context), only supported in build mode |
352
+ | isClearSpace | boolean | ❌ | `false` | Whether to remove whitespace from both ends of source strings, whitespace is preserved by default |
352
353
 
353
354
  ---
354
355
 
@@ -472,6 +473,17 @@ Original authors: wenps, xu-code, Caleb-Xu, Winfans
472
473
  ## Changelog
473
474
 
474
475
 
476
+ ### v1.1.8 (Recommended Version)
477
+
478
+ - Renamed configuration for controlling leading/trailing whitespace removal
479
+
480
+ ### v1.1.7 (Recommended Version)
481
+
482
+ - Added compatibility for enable feature and translation initialization completion
483
+ - Added configuration option to control whether to remove leading/trailing whitespace during scanning
484
+ - Fixed issue with abnormal triggering of new translations
485
+ - Fixed issue where cleanup configuration was not taking effect
486
+
475
487
  ### v1.1.6 (Recommended Version)
476
488
 
477
489
  - Fixed issue where clearing whitespace before/after template strings caused mismatch between JSON and translation functions
package/readme.md CHANGED
@@ -359,7 +359,8 @@ import '../lang/index.js' // 📍 必须在入口文件中第一行引入,文
359
359
  | deepScan | boolean | ❌ | `false` | 实验性属性,表示是否进行深层扫描字符串 |
360
360
  | commonTranslateKey | string | ❌ | `''` | 通用翻译key |
361
361
  | insertFileExtensions | string[] | ❌ | `[]` | 要插入翻译代码的文件扩展名列表 |
362
- | isClear | boolean | ❌ | `false` | 是否清除已经不在上下文中的内容(清除项目中不再使用到的源语言键值对) |
362
+ | isClear | boolean | ❌ | `false` | 是否清除已经不在上下文中的内容(清除项目中不再使用到的源语言键值对),仅仅支持打包模式下使用 |
363
+ | isClearSpace | boolean | ❌ | `false` | 是否清除源字符串中左右两边的空格,默认会保留空格 |
363
364
 
364
365
  ---
365
366
 
@@ -484,6 +485,17 @@ const HelloWorld: React.FC<HelloWorldProps> = ({ name = 'World' }) => {
484
485
 
485
486
  ## 更新日志
486
487
 
488
+ ### v1.1.8 (推荐版本)
489
+
490
+ - 是否支持清除前后空格配置重命名
491
+
492
+ ### v1.1.7 (推荐版本)
493
+
494
+ - enable 能力兼容 翻译初始化补全
495
+ - 新增扫描是否支持清除前后空格配置
496
+ - 修复异常触发新增翻译问题
497
+ - 修复清理配置异常不生效问题
498
+
487
499
  ### v1.1.6 (推荐版本)
488
500
 
489
501
  - 修复模板字符串前后空格清空导致 JSON 对应不上翻译函数的问题