
smartling
> Smartling CLI to `upload` and `download` translations
Supports only Smartling's API v2
Commands
-
push - Uploads translations
-
pull - Downloads translations
Download
All available releases you can find here.
Usage
Please defined .smartling.yml under your repo:
.smartling.yml
UserId: <SMARTLING_USER_ID>
UserSecret: <SMARTLING_USER_SECRET>
ProjectId: <SMARTLING_PROJECT_ID>
ProjectAlias: <SMARTLING_PROJECT_ALIAS>
Files:
- Type: json
PathGlob: translations/**/en-US.json
PathExclude:
- translations/foo/en-US.json
PathExpression: '{{ .Dir }}/{{ .Locale }}{{ .Ext }}'
AuthorizeContent: true
Directives:
string_format: NONE
Locales:
de-DE: de-DE
es-ES: es-ES
fr-FR: fr-FR
it-IT: it-IT
ja-JP: ja-JP
ko-KR: ko-KR
pt-BR: pt-BR
tr-TR: tr-TR
zh-CN: zh-CN
zh-TW: zh-TW
Then execute smartling:
$ smartling
NAME:
smartling - Smartling CLI to `upload` and `download` translations
USAGE:
smartling [global options] command [command options] [arguments...]
VERSION:
dev
AUTHOR(S):
Marat Dreizin <marat.dreizin@gmail.com>
COMMANDS:
push Uploads translations
pull Downloads translations
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--project-file value (default: ".smartling.yml") [$SMARTLING_PROJECT_FILE]
--project-id value [$SMARTLING_PROJECT_ID]
--project-alias value [$SMARTLING_PROJECT_ALIAS]
--user-id value [$SMARTLING_USER_ID]
--user-secret value [$SMARTLING_USER_SECRET]
--help, -h show help
--version, -v print the version
Setup
- Run
brew install go glide
- Run
make restore
Develop
- Run
make build and execute smartling
Test
Cover
- Run
make cover or make cover-html