Skip to content
This repository

WebTranslateIt synchronisation console

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 bin
Octocat-spinner-32 lib
Octocat-spinner-32 Gemfile
Octocat-spinner-32 history.md
Octocat-spinner-32 license
Octocat-spinner-32 readme.md
Octocat-spinner-32 web_translate_it_server.gemspec
readme.md

Web Translate It Synchronisation Console

Web Translate It

wti-server is a sinatra app you can use to run a friendly web interface to sync your translations. It allows a translation team to refresh the language files on a staging server without asking the developers to manually wti pull.

Installation

gem install web_translate_it_server

Usage

Go to the directory of the application you want to run the server on and do:

wti-server

By default, it starts an application on localhost on the port 4000. You will find the tool on http://localhost:4000.

Should you need to use another host or port, you can use the -h and -p options. For example: wti server -p 1234.

You may want to run some commands before or after syncing translations. You can use the hooks to do so. For instance, you could add the following in your .wti file:

before_pull: "echo 'some unix command'"
after_pull:  "touch tmp/restart.txt"

before_pull and after_pull are respectively executed before and after pulling language files.

Something went wrong with that request. Please try again.