Comments (2)
@huchaolin 你应该要按照文档说明来初始化整个项目,从而开始提取操作,你的配置文件:
{
"kiwiDir": "./i18n/lang",
"srcLang": "zh-CN",
"distLangs": [
"en-US",
"zh-HK"
],
"googleApiKey": "",
"baiduApiKey": {
"appId": "请使用自己的",
"appKey": "请使用自己的"
},
"baiduLangMap": {
"en-US": "en",
"zh-HK": "cht"
},
"translateOptions": {
"concurrentLimit": 10,
"requestOptions": {}
},
"defaultTranslateKeyApi": "Pinyin",
"importI18N": "import I18N from '@i18n';",
"ignoreDir": ["./i18n"],
"ignoreFile": ""
明显改动太大,kiwiDir明显不正确,但是引起你这个的BUG原因是由于你设置ignoreFile为”“,造成内部逻辑扫描路径错误,未能正确扫描src,而变成扫描你配置的”“字符串路径,你应该删除这个配置文件,重新使用init生成配置文件,然后开始提取操作,或者ignoreFile使用文档说明的默认配置[], 并且kiwi默认路径也应该使用默认的
from kiwi.
Related Issues (20)
- 使用了kiwi 做前端工程里的自动化,体验非常好,但是使用完毕后存在以下疑问?大佬有时间的话可以帮忙解答一下哈。 HOT 1
- 安装kiwi-clis后,kiwi --init 初始化报错
- kiwi --init 报错 HOT 3
- 导入成功后,无法二次导入不同的文案,会一直告知导入成功 HOT 1
- 可以撤销国际化吗? HOT 1
- 在使用kiwi --translate之后不能成功翻译 HOT 1
- ignoreDirectory和ignoreFile属性能否release一个版本支持下
- extract时如果上级目录不存在会报错
- 翻译命令执行报II8N文件不存在
- kiwi --translate 西班牙语报错 (繁体,英文,泰语,日语没问题)
- kiwi-linter 一键提取中文字符串到对应的语言 Key 库的时候 文件路径能否支持vscode预先定义?! HOT 1
- kiwi --extract 新生成的文件没自动写入到导出的index.ts
- kiwi-linter 在新版本的 VSCode 中使用报错
- 能否支持js、jsx文件的提取?并且一键提取中文字符串到对应的语言 Key 库的时候,是按照原来的文件路径新建的,变量名也是文件路径拼起来 HOT 3
- kiwi-linter@ v1.5.0 关键词错位
- 怎么实现增量更新 HOT 3
- 在vue3中切换语言无法实现响应式,需刷新才能切换 HOT 1
- kiwi在pnpm workspace不能运行
- [bug] npm版本和github版本不一致
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kiwi.