i18n-parser
website —— 国际化解决方案
基于 babel 实现的 vue 国际化文案自动提取和转换方案
Home Page: https://sweet.icodex.me
License: MIT License
website —— 国际化解决方案
// package.json
"config": {
"sugar18": {
"importPath": "@i18n",
"pattern": "**/*.{vue,js,ts,html}",
}
}
// vite.config.js
resolve: {
alias: {
"@i18n": path.resolve(__dirname, "./src"),
},
},
大佬,这个配置有问题吗?执行trust提示Please set import expression's filepath.
请指教,盼回复
https://forum.vuejs.org/t/vue/124709
在网上看到了您发的文章,在做vscode 国际化插件的想实现一个功能,想通过解析vue文件 生成 ast 然后讲要所有的标签中的中文文案,包裹上特定的标签例如:, 然后生成一个字符串重新贴回到原来的vue文件。大体思路应该跟您的文章一样,但是文章项目链接失效了,想跟大佬学习一下,大佬可以更新一下链接嘛感谢
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.