Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

你好,我运行命令报错啦 #1

Closed
Maxiaochuan123 opened this issue Sep 19, 2022 · 10 comments
Closed

你好,我运行命令报错啦 #1

Maxiaochuan123 opened this issue Sep 19, 2022 · 10 comments
Labels
good first issue Good for newcomers

Comments

@Maxiaochuan123
Copy link

Maxiaochuan123 commented Sep 19, 2022

image

@eyelly-wu eyelly-wu added the good first issue Good for newcomers label Sep 20, 2022
@eyelly-wu
Copy link
Collaborator

麻烦提供下以下版本信息:
node:
npm:
操作系统:

@Maxiaochuan123
Copy link
Author

node: v16.17.0
npm: 8.15.0
system: windows10 64

@eyelly-wu
Copy link
Collaborator

@Maxiaochuan123 尝试修复了

@Maxiaochuan123
Copy link
Author

是的可以执行命令了, 我想要在 vite + vue 中使用,运行命令后似乎没有正确生成翻译文件,默认配置我没有修改,请问我需要怎样配置呢,如果方便解答的话,谢谢~
image
image
image
image

@eyelly-wu
Copy link
Collaborator

看样子应该是正则没有匹配到文件,你需要调整下配置文件中 fileRegExp 这个属性的配置

@Maxiaochuan123
Copy link
Author

确实是正则这里需要重新写,请问是否考虑用路径替代正则呢, 这样似乎方便些
类似 i18next-scanner 这个包中的 input 配置项他是这样的 'src/**/*.{js,jsx,vue}'

@Maxiaochuan123
Copy link
Author

您的这款 插件非常棒,当初我寻找了很多解决方案,使用 i18next-scanner 进行文件扫描匹配翻译成 crc 码的方式,但不理想需要手动将生成的语言 json 文件,手动粘贴翻译后再粘贴回来,您的想法和我不谋而合,我也想着要是能掉 api 自动翻译就好了,非常幸运看到了您的项目,太棒了!

@Maxiaochuan123
Copy link
Author

image

.log 文件夹 以及生成的语言空文件夹 .jso 能去掉吗?我看您提供的例子 https://codesandbox.io/p/github/eyelly-wu/i18n-pro-react-demo/main?file=%2Fsrc%2FApp.tsx
中 i18n 文件夹中只有语言.json 文件非常干净~

@eyelly-wu
Copy link
Collaborator

哈哈,为了便于沟通,诚邀你加入i18n-pro的QQ群:251644053

@eyelly-wu
Copy link
Collaborator

@Maxiaochuan123 嘿,老兄,感谢一直以来对 i18n-pro 的支持,告诉你个好消息,目前已正式推出了适配 Vue 的版本,欢迎体验尝试

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants