Giter Site home page Giter Site logo

i18n-remove's Introduction

介绍

此脚本可批量剔除web项目中的国际化内容为对应的内容

示例一

<div>{{ $t('home') }}</div>

<!-- 替换后为 -->
<div>首页</div>

示例二

const title = this.$t('order.orderNumber')

// 替换后为
const title = '订单号'

准备

需准备一份后缀名为 mjs 的国际化文件,用于替换文件中的国际化,内容格式如下

export default [
  home: '首页',
  login: '登录'
  order: {
      orderNumber: '订单号'
  }
]

Installation

 npm install @bellacocool/i18n-remove

Use

执行i18nrm,根据提示输入即可

 i18nrm

Other

  • About log
文件 /Users/xuexingwei/Desktop/code/admin-base/src/views/agent/components/DialogAgent.vue 替换了0处,1处没有被替换
文件 /Users/xuexingwei/Desktop/code/admin-base/src/views/home/components/fillInPrincipal.vue 替换了38处
文件 /Users/xuexingwei/Desktop/code/admin-base/src/views/home/components/willExpire.vue 替换了14处
文件 /Users/xuexingwei/Desktop/code/admin-base/src/views/home/index.vue 替换了16处
文件 /Users/xuexingwei/Desktop/code/admin-base/src/views/issue/index.vue 替换了0处,1处没有被替换
文件 /Users/xuexingwei/Desktop/code/admin-base/src/views/issue/issueWait.vue 替换了0处,1处没有被替换
文件 /Users/xuexingwei/Desktop/code/admin-base/src/views/login/emailCode.vue 替换了6处,1处没有被替换
文件 /Users/xuexingwei/Desktop/code/admin-base/src/views/systemSetting/seal/index.vue 替换了2处
文件 /Users/xuexingwei/Desktop/code/admin-base/src/views/user/index.vue 替换了14处

i18n-remove's People

Contributors

superronin avatar

Watchers

 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.