docs: 更新history.md
This commit is contained in:
parent
3a16f8cdaf
commit
95cf29aae9
@ -1,7 +1,7 @@
|
||||
# 更新日志
|
||||
|
||||
## 2023/3/27
|
||||
|
||||
- [BUG] 修复`@voerkai18n/cli extract`在`nodejs < 15`版本下由于缺少`replaceAll`而导致出错的问题,现在在`nodejs >=12`时也可以运行
|
||||
- [BUG] 修复`@voerkai18n/cli`命令因为`logsets`依赖升级后导致的`RangeError: Invalid array length`错误
|
||||
|
||||
## 2023/3/24
|
||||
|
@ -1 +1,39 @@
|
||||
{}
|
||||
{
|
||||
"这是一个测试": {
|
||||
"en": "这是一个测试",
|
||||
"$file": [
|
||||
"main.js",
|
||||
"App.jsx"
|
||||
]
|
||||
},
|
||||
"中华民族伟大复兴": {
|
||||
"en": "中华民族伟大复兴",
|
||||
"$file": [
|
||||
"modules\\module1.js"
|
||||
]
|
||||
},
|
||||
"犯我中华者,虽远必诛!": {
|
||||
"en": "犯我中华者,虽远必诛!",
|
||||
"$file": [
|
||||
"modules\\module2.js"
|
||||
]
|
||||
},
|
||||
"Voerkai1n是一个功能强大设计精良的国际化解决方案": {
|
||||
"en": "Voerkai1n是一个功能强大设计精良的国际化解决方案",
|
||||
"$file": [
|
||||
"App.jsx"
|
||||
]
|
||||
},
|
||||
"一字一世界,一笔一乾坤,汉字是这个星球上最美的语言": {
|
||||
"en": "一字一世界,一笔一乾坤,汉字是这个星球上最美的语言",
|
||||
"$file": [
|
||||
"components\\Banner.jsx"
|
||||
]
|
||||
},
|
||||
"当前语言": {
|
||||
"en": "当前语言",
|
||||
"$file": [
|
||||
"components\\LanguageConfigurator.jsx"
|
||||
]
|
||||
}
|
||||
}
|
@ -47,7 +47,7 @@ function removeComments(content,filetype="js"){
|
||||
Object.entries(commentRegexs).forEach(([filetype,regexps])=>{
|
||||
if(filetype.split(",").includes(filetype)){
|
||||
regexps.forEach(regex=>{
|
||||
content = content.replaceAll(regex,"")
|
||||
content = content.replaceAll(regex,"")
|
||||
})
|
||||
}
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user