Giter Club home page Giter Club logo

transai's Introduction

transai

npm version Build Status Code Climate Awesome Awesome

transai is a command line tool to help you do Android and iOS translation management. You can extract string files to csv format, or generate string files from csv file for both Android, iOS and Mac.

Installation

Just install it by npm:

$ sudo npm install transai -g

Usage

Usage:
  transai load [COMMAND]    # load string files
  transai save [COMMAND]    # save string files
  transai -h | --help       # help
  transai -v | --version    # version info

Options:
  -i, --ios                 # ios file path
  -a, --android             # android file path
  -w, --web                 # web json file path
  -f, --from                # from which lang (both ios & android)
  --from_ios                # from which ios lang
  --from_android            # from which android lang
  --from_web                # from which web lang
  -t, --to                  # to which lang (both ios & android)
  --to_ios                  # to which ios lang
  --to_android              # to which android lang
  --to_web                  # to which web lang
  -c, --csv                 # csv file

Example:

$ transai load -a ~/android -i ~/ios --from en --to de -c ~/strings.csv

extract strings to strings.csv under ~/android and ~/ios folder

$ transai load -a ~/android -i ~/ios --from_android default --from_ios en --to_android zh_tw --to_ios zh-Hant -c ~/strings.csv

extract strings base on android default lang and ios en lang to android zh_tw lang and ios zh-Hant lang

$ transai save -a ~/android -i ~/ios --from en --to de -c ~/strings.csv

generate string files from strings.csv under ~/android and ~/ios folder

$ transai save -a ~/android -i ~/ios --from_android default --from_ios en --to_android zh_tw --to_ios zh-Hant -c ~/strings.csv

generate string files base on android default lang and ios en lang to android zh_tw lang and ios zh-Hant lang

See transai --help or transai <command> --help for more information.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/Jintin/transai.

License

The module is available as open source under the terms of the MIT License.

transai's People

Contributors

jintin 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  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  avatar  avatar  avatar  avatar

Watchers

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