Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Jintin/transai
transai is a localization tool on Android and iOS.
https://github.com/Jintin/transai
android ios localization-tool
Last synced: about 1 month ago
JSON representation
transai is a localization tool on Android and iOS.
- Host: GitHub
- URL: https://github.com/Jintin/transai
- Owner: Jintin
- License: mit
- Created: 2015-09-13T06:11:19.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-02-17T03:03:15.000Z (almost 7 years ago)
- Last Synced: 2024-11-24T18:03:05.178Z (about 2 months ago)
- Topics: android, ios, localization-tool
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/transai
- Size: 48.8 KB
- Stars: 58
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-ios - transai - command line tool help you manage localization string files. (Localization / Other Hardware)
- awesome-android - transai - command line tool help you manage localization string files. (Libraries / Other)
- awesome-android-libraries - transai
- awesome-android - transai - command line tool help you manage localization string files. (Libraries / Other)
- awesome-ios-star - transai - command line tool help you manage localization string files. (Localization / Other Hardware)
README
# transai
[![npm version](https://badge.fury.io/js/transai.svg)](http://badge.fury.io/js/transai) [![Build Status](https://travis-ci.org/Jintin/transai.svg?branch=master)](https://travis-ci.org/Jintin/transai) [![Code Climate](https://codeclimate.com/github/Jintin/transai/badges/gpa.svg)](https://codeclimate.com/github/Jintin/transai) [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/JStumpp/awesome-android) [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/vsouza/awesome-ios)
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:
```bash
$ sudo npm install transai -g
```## Usage
```bash
Usage:
transai load [COMMAND] # load string files
transai save [COMMAND] # save string files
transai -h | --help # help
transai -v | --version # version infoOptions:
-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 --help` for more information.
## Contributing
Bug reports and pull requests are welcome on GitHub at .
## License
The module is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).