TranslationService
This gem provides networking to a custom translation service.
Installation
Add this line to your application's Gemfile:
gem 'translation_service'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install translation_service
Usage
require 'translation_service'
Maybe put the config in an itializer?
TranslationService.configure do |config|
config.master_revision = 'test'
config.address = 'https://content.translations.lan/webservices/'
config.key = 'oi321'
config.password = 'fakepw'
config.location = '/spec/locales'
config.available_locales = [
:en, :fr
]
end
TranslationService.pull_all
TranslationService.add('gem.test', 'test text', 'http://example.context')
Development
It is currently private, however, may make it public in the future.