0.0
The project is in a healthy, maintained state
Simple and powerful translation API client for Ruby. Translate text to 100+ languages with ease.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

Translate API - Ruby SDK

Official Ruby SDK for Translate API.

🚀 Quick Start (For Beginners)

Step 1: Get Your API Key

  1. Go to https://translate-api.com
  2. Click "Login" or "Get Started"
  3. Create an account (it's free to start!)
  4. Go to your Dashboard
  5. Click "Create API Key"
  6. Copy your API key - you'll need it!

Step 2: Install the SDK

Open your terminal and run:

gem install translate_api

Step 3: Use It!

require 'translate_api'

# Replace 'your-api-key' with your actual API key from translate-api.com
client = TranslateAPI::Client.new('your-api-key')

# Translate to one language
result = client.translate('Hello world', 'es')
puts result['translations']['es']  # Output: "Hola mundo"

# Translate to multiple languages at once
result = client.translate('Hello world', ['es', 'fr', 'de'])
puts result['translations']
# Output: {"es"=>"Hola mundo", "fr"=>"Bonjour le monde", "de"=>"Hallo Welt"}

📖 Full API Reference

Constructor

client = TranslateAPI::Client.new(api_key, base_url: 'https://translate-api.com/v1')

translate(text, target_language)

Translate text to one or more languages.

translate_batch(items)

Translate multiple texts at once.

🌍 Supported Languages

Visit translate-api.com/documentation for a full list.

❓ Need Help?

📝 License

MIT License