ejayyoung / auto-translate-converter Goto Github PK
View Code? Open in Web Editor NEWa cli work for part of i18n project chain
License: MIT License
a cli work for part of i18n project chain
License: MIT License
如果你提取到的中文是在 i18n/zh-cn.js 中的,你就把对应的 i18n/en.js 中的也提取出来,当然替换的时候要把英文也给替换掉
Before
// i18n/zh-cn.js
{ 'key': '中文' }
// i18n/en.js
{ 'key': 'English' }
// app.js
console.log(i18n('key'));
// other.js 硬编码的中文
console.log('中文'));
得到 excel
key | Chinese | English |
---|---|---|
random_key | 中文 | English |
after
// i18n/zh-cn.js
{ 'key': medusa['random_key'] }
// i18n/en.js
{ 'key': medusa['random_key'] }
// app.js
console.log(i18n('key'));
// other.js 硬编码的中文
console.log(medusa['random_key']);
replace 时告知用户共扫描到X个中文,成功替换掉Y个中文,X不等于Y时,告警报错,并且退出,不进行最终的替换,然后将没有在 Excel 中查找到的中文输出到控制台上。
::运算符 ast解析出错
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.