# General Translation Platform: GTRuntime
URL: https://generaltranslation.com/en-US/docs/platform/core/reference/runtime.mdx
Docs index: https://generaltranslation.com/llms.txt
Description: Use runtime translation, formatting, and locale helpers without project management. API reference for GTRuntime.

Import `GTRuntime` from `generaltranslation/runtime` when your application does not need file or project management. The supported [`GT`](/docs/platform/core/reference/gt-class/constructor) class extends it and adds those management methods.

| Export | Description |
| --- | --- |
| [`GTRuntime`](#runtime) | Runtime translation, formatting, and locale methods. |
| [`GTConstructorParams`](#configuration) | Shared constructor and reconfiguration options. |

## `GTRuntime` [#runtime]

**Type** class · **Constructor** `new GTRuntime(params?: GTConstructorParams)`

The runtime entry excludes the file/project-management client. It retains [`translate`](/docs/platform/core/reference/gt-class-methods/translation/translate), [`translateMany`](/docs/platform/core/reference/gt-class-methods/translation/translate-many), formatting, locale helpers, and [`setConfig`](/docs/platform/core/reference/gt-class/set-config). Their runtime contracts match the inherited methods on [`GT`](/docs/platform/core/reference/gt-class/constructor).

```ts title="format.ts"
import { GTRuntime } from 'generaltranslation/runtime';

const runtime = new GTRuntime({ sourceLocale: 'en', targetLocale: 'en-US' });
console.log(runtime.formatNum(1234.5)); // 1,234.5
```

Formatting and locale helpers need no API credentials. Runtime translation requires a project ID and an API key.

Do not embed API keys in deployed browser or mobile bundles.

## `GTConstructorParams` [#configuration]

**Type** object · **Optional** · **Default** `{}`

Import the type from `generaltranslation/runtime`. It is the same [constructor configuration](/docs/platform/core/reference/types/gt-constructor-params) used by the root class: API keys, project ID, base URL, locales, and custom mapping. It does not accept `fetch`, `timeoutMs`, `retryPolicy`, or `apiVersion`.

Use [`setConfig`](/docs/platform/core/reference/gt-class/set-config) to reconfigure an instance.

## Sitemap

See the full [sitemap](https://generaltranslation.com/sitemap.md) for all pages.
