smartling

module
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2016 License: MIT

README

Travis build status Coverage Status

smartling

> Smartling CLI to `upload` and `download` translations

Supports only Smartling's API v2

Commands

  • push - Uploads translations
  • pull - Downloads translations
  • list - Shows a list of local 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
     list, ls  Shows a list of local 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

  • Run make test

Cover

  • Run make cover or make cover-html

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL