GithubHelp home page GithubHelp logo

jingluochen / i18n Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kuaizi-co/i18n

0.0 0.0 0.0 455 KB

基于vue-i18n生态的一系列工具插件

Home Page: https://github.com/Kuaizi-co/i18n

License: MIT License

JavaScript 70.39% TypeScript 29.61%

i18n's Introduction

@kuaizi/i18n

作为一个具有国际业务的Sass供应商,多语言是最基本的刚需,如何方便保持页面维护和支持多语言,由最初的直接用中文作为key值思路,@veici 最早实现的 i18n-placeholder-loader,衍生去整合我们的多语言工具链

包含的工具:

  • i18n-loader
  • vue-cli-plugin-i18n
  • webpack-plugin-i18n
  • i18n-cli
  • vue-i18n-helper

vue-i18n-loader

参考 i18n-placeholder-loader

自动替换占位符

使用文档

vue-cli-plugin-i18n

vue-cli3.x插件,注入配置 i18n-loader

使用文档

webpack-plugin-i18n

i18n-loader的插件版本,在build才替换

使用文档

i18n-cli

提供一键翻译 excel 文件

使用文档

vue-i18n-helper

提供i18n扩展的vscode快捷键

使用文档

Test 自动化测试

# 测试全部包
> yarn test

# 测试一个模块
> yarn test i18n-loader

# 测试多个模块
> yarn test i18n-loader,i18n-cli

publish

# 打版本
> npx lerna version prerelease --amend --conventional-commits
# 发布
> npx lerna publish --force-publish --yes --no-git-tag-version
# 预发版
> npx lerna publish --canary --force-publish --yes --no-git-tag-version
# 发布下一个版本
> npx lerna publish --dist-tag next --force-publish --yes

i18n's People

Contributors

tomieric avatar

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.