Giter Site home page Giter Site logo

wood3n / i18n-parser Goto Github PK

View Code? Open in Web Editor NEW
19.0 1.0 4.0 1.28 MB

基于 babel 实现的 vue 国际化文案自动提取和转换方案

Home Page:

License: MIT License

CSS 8.27% TypeScript 67.69% JavaScript 24.04%
vue javascript nodejs cli babel i18n i18n-vue

i18n-parser's Introduction

i18n-parser's People


wood3n avatar


 avatar 王美建 avatar  avatar 戴海天 avatar  avatar Ace avatar Terry Cai avatar 郭平川 avatar  avatar  avatar daoyi.tian avatar  avatar  avatar A_DODO avatar  avatar daidaishuo avatar  avatar  avatar lifeLikeACode avatar



i18n-parser's Issues


// 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.


您好 想请教一下tvt的那个项目
在网上看到了您发的文章,在做vscode 国际化插件的想实现一个功能,想通过解析vue文件 生成 ast 然后讲要所有的标签中的中文文案,包裹上特定的标签例如:, 然后生成一个字符串重新贴回到原来的vue文件。大体思路应该跟您的文章一样,但是文章项目链接失效了,想跟大佬学习一下,大佬可以更新一下链接嘛感谢🙏

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.