Everything you need to know about managing translations with Translator. From getting started to advanced API integration.
Translator is a modern, developer-friendly translation management platform that streamlines the localization process for applications of any size.
Create collections for different projects or applications
Handle keys and values across multiple languages
Inline editing with progress tracking
Seamless integration with your applications
JSON import and various export formats
Visual indicators for translation status
Sign up for a free account to get started with up to 3 collections and 500 translation keys.
Get Started FreeCollections help you organize translations by project, application, or any logical grouping.
Translation keys are the identifiers you'll use in your code to reference translated content.
Collections are the main organizational unit in Translator. Each collection represents a project, application, or logical grouping of translations.
Terms (translation keys) are the building blocks of your translations. Each term can have translations in multiple languages.
When creating a new term:
Translator features powerful inline editing capabilities:
Translator uses API tokens for secure authentication. All API requests require a valid token.
Important
Store your API tokens securely. You won't be able to see them again after creation.
Include your API token in the Authorization header of all requests:
Authorization: Bearer YOUR_API_TOKEN
Retrieve all collections for the authenticated user:
GET http://translator-app.com/api/collections Authorization: Bearer YOUR_API_TOKEN
{
"data": [
{
"id": 1,
"name": "Web App",
"description": "Main web application translations",
"languages": ["en", "es", "fr"],
"default_language": "en",
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z"
}
]
}
Retrieve all translations for a specific collection and language:
GET http://translator-app.com/api/collections/{language}/{collection_name}.json
GET http://translator-app.com/api/collections/en/web-app.json Authorization: Bearer YOUR_API_TOKEN
{
"welcome_message": "Welcome to our application!",
"user.profile.save_button": "Save Profile",
"user.profile.cancel_button": "Cancel",
"navigation.home": "Home",
"navigation.about": "About"
}
// Fetch translations
async function getTranslations(language, collection) {
const response = await fetch(`http://translator-app.com/api/collections/${language}/${collection}.json`, {
headers: {
'Authorization': 'Bearer YOUR_API_TOKEN',
'Content-Type': 'application/json'
}
});
if (!response.ok) {
throw new Error('Failed to fetch translations');
}
return await response.json();
}
// Usage
const translations = await getTranslations('en', 'web-app');
console.log(translations.welcome_message);
// Using cURL
function getTranslations($language, $collection, $apiToken) {
$url = "http://translator-app.com/api/collections/{$language}/{$collection}.json";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Authorization: Bearer ' . $apiToken,
'Content-Type: application/json'
]);
$response = curl_exec($ch);
curl_close($ch);
return json_decode($response, true);
}
// Usage
$translations = getTranslations('en', 'web-app', 'YOUR_API_TOKEN');
echo $translations['welcome_message'];
import requests
def get_translations(language, collection, api_token):
url = f"http://translator-app.com/api/collections/{language}/{collection}.json"
headers = {
'Authorization': f'Bearer {api_token}',
'Content-Type': 'application/json'
}
response = requests.get(url, headers=headers)
response.raise_for_status()
return response.json()
# Usage
translations = get_translations('en', 'web-app', 'YOUR_API_TOKEN')
print(translations['welcome_message'])
Need help? We're here to support you every step of the way.
Comprehensive guides, API reference, and best practices to help you get the most out of Translator.
Get personalized help from our support team. We typically respond within 24 hours.
support@example.com