5-Minute Developer Quickstart

GlobalizationOS is localization infrastructure for applications. This quickstart uses the Developer API V1 — not the website widget path.

  1. Create a GlobalizationOS account
  2. Create a developer project (Custom API integration)
  3. Generate and copy your API key (gos_live_…)
  4. Store the key: export GLOBALIZATIONOS_API_KEY=gos_live_…
  5. Send your first localization request (curl or TypeScript below)
  6. Read the returned localized segments
  7. Render output in your app — see the Next.js example
  8. Add target languages and integrate in production

Environment

Shell
export GLOBALIZATIONOS_API_KEY=gos_live_your_secret
export GLOBALIZATIONOS_PROJECT_ID=your-project-uuid

First localization call (curl)

curl
curl -sS -X POST 'https://api.globalizationos.com/api/v1/api/v1/developer/translations' \
  -H 'Authorization: Bearer $GLOBALIZATIONOS_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "projectId": "YOUR_PROJECT_ID",
    "sourceLocale": "de",
    "targetLocale": "en",
    "text": "Guten Morgen"
  }'

First localization call (TypeScript)

TypeScript
import { GlobalizationOSClient } from '@globalizationos/integration-core';

const client = new GlobalizationOSClient({
  apiKey: process.env.GLOBALIZATIONOS_API_KEY!,
  baseUrl: 'https://api.globalizationos.com/api/v1/api/v1',
});

const result = await client.translate({
  projectId: process.env.GLOBALIZATIONOS_PROJECT_ID!,
  sourceLocale: 'de',
  targetLocale: 'en',
  text: 'Guten Morgen',
});

console.log(result.segments);

Expected response (synthetic example)

{
  "id": "11111111-1111-1111-1111-111111111111",
  "status": "completed",
  "projectId": "22222222-2222-2222-2222-222222222222",
  "requestId": "req_example",
  "segments": [
    {
      "id": "item-1",
      "text": "Good morning",
      "targetLocale": "en"
    }
  ],
  "usage": {
    "sourceWordCount": 2,
    "billableSourceWordCount": 2,
    "cachedSourceWordCount": 0,
    "meter": "localization_canonical_new_work_v1",
    "note": "Billable units represent newly generated canonical source content for a target locale."
  }
}
AuthenticationLocalizationErrorsNext.js guideAPI reference