smartring

A Smartling API client

This project is maintained by bjjb

A Ruby library for the Smartling API (v2)

Installation

gem install smartring

Or to include it in your Bundler project, add this to your Gemfile:

gem 'smartring'

Usage

To get started with the CLI, use

smartring -h

Here’s an example of using it in a Ruby library:

require 'smartring'

# Upload a new file for translation
file = Smartring::Files::JSON.new()
api = Smartring.new(user_id: USER_ID, user_secret: USER_SECRET)
api.files(project_id: PROJECT_ID).each do |file|
  puts file.file_uri
end

# Gets all Korean translations for the first file
file_uri = api.files.data.items.first.file_uri
api.translations(file_uri: file_uri, target_locale_id: 'ko')

Similar projects

Build Status Test Coverage Maintainability Dependency Status Gem Version License