Giter Site home page Giter Site logo

wood3n / i18n-parser Goto Github PK

View Code? Open in Web Editor NEW
27.0 3.0 7.0 1.28 MB

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

Home Page: https://sweet.icodex.me

License: MIT License

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

i18n-parser's Introduction

Hi there 👋

wood3n

Creative FrontEnd Web Developer

💪 Skill

i18n-parser's People

Contributors

wood3n avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

i18n-parser's Issues

您好 想请教一下tvt的那个项目

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

如何使用?

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

请指教,盼回复

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.