IFreeOvO / i18n-cli

支持将vue、react项目里的中文替换成 i18n 国际化标记,并支持自动翻译的命令行工具
MIT License
131 stars 38 forks source link

提取报错, 只转换了3个vue文件就中断了, locales下的zh-CN.json文件里也没有写入转换的数据 #124

Closed H-Sven closed 3 months ago

H-Sven commented 4 months ago
image
mollyhappy commented 4 months ago

我也遇到了 image

IFreeOvO commented 4 months ago

执行时,加下-v,可以看下大概哪个在转换哪个文件时报错。 从截图看,像是模版里使用里对象调用导致的。例如template模版里写了<div>{{ {a: 1}['a'] }}</div>,是不是有写类似这样的语法

mollyhappy commented 4 months ago

ts尖括号的写法会报错 1720750802292

IFreeOvO commented 4 months ago

好的。我晚上回去修。周末给你解决

mollyhappy commented 4 months ago

辛苦了!!!

IFreeOvO commented 3 months ago

ts强制类型转换。会被错误识别成jsx里的html,导致的这个问题。我暂时没想出好的解决方案。 新的脚手处理逻辑改成:报错也会继续处理剩余的文件,并给出友好的错误提示,有助于定位,和手动修复问题。你可以根据报错信息,手动把强制转换改成as断言来修复

mollyhappy commented 3 months ago

ts强制类型转换。会被错误识别成jsx里的html,导致的这个问题。我暂时没想出好的解决方案。 新的脚手处理逻辑改成:报错也会继续处理剩余的文件,并给出友好的错误提示,有助于定位,和手动修复问题。你可以根据报错信息,手动把强制转换改成as断言来修复

好的,我先试试!辛苦

github-actions[bot] commented 3 months ago

Since the issue was labeled with inactive, but no response in 3 days. This issue will be closed. If you have any questions, you can comment and reply. 由于该 issue 被标记为不活跃,却 3 天未收到回应。现关闭 issue,若有任何问题,可评论回复.

IFreeOvO commented 3 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

此 issue 已被自动锁定,因为关闭后没有任何近期活动。如果有相关 bug,请重新创建一个新 issue。

IFreeOvO commented 2 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

此 issue 已被自动锁定,因为关闭后没有任何近期活动。如果有相关 bug,请重新创建一个新 issue。

IFreeOvO commented 2 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

此 issue 已被自动锁定,因为关闭后没有任何近期活动。如果有相关 bug,请重新创建一个新 issue。

IFreeOvO commented 1 month ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

此 issue 已被自动锁定,因为关闭后没有任何近期活动。如果有相关 bug,请重新创建一个新 issue。

IFreeOvO commented 3 weeks ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

此 issue 已被自动锁定,因为关闭后没有任何近期活动。如果有相关 bug,请重新创建一个新 issue。

IFreeOvO commented 1 week ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

此 issue 已被自动锁定,因为关闭后没有任何近期活动。如果有相关 bug,请重新创建一个新 issue。