GithubHelp home page GithubHelp logo

ri-translate's Introduction

rigo

a simple translate tool for zh-en.

1. Basic Usage

how to use?:

yarn global add rigo

first you need a file such as:

module.exports = {
  en: {},

  zh: {
    curtain0: '百叶窗',
    curtain1: '香格里拉窗帘',
    curtain2: '罗马帘',
    curtain3: '卷帘',
    curtain4: '柔纱帘',
    curtain5: '卷窗',
    curtain6: '蜂巢帘',
    curtain7: '百褶帘',
    curtain8: '卷闸门',
    curtain9: '遮阳蓬',
    curtain10: '开合帘',
    curtain11: '罗马杆',
  },
}

next

rigo -f ./strings.js

We will replace the source file with the translated file

command:

  • rigo -f => Documents that need to be translated
  • rigo -o => The location to which the translated file needs to be exported
  • riclean -f => delete file

Todo

At present, only relative of files is supported. absolute position support will be added as soon as possible。

Currently, only Chinese to English is supported. Other languages will be added as soon as possible。

no import is not supported.

ri-translate's People

Contributors

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