# General Translation Changelog: gt-node 0.6.0: Runtime translation with tx()
URL: https://generaltranslation.com/en-GB/blog/gt-node_v0_6_0.mdx
Docs index: https://generaltranslation.com/llms.txt
Description: 
Authors: Ernest McCarter
Published: 2026-04-14

## Overview

`gt-node` now has [`tx()`](/docs/node/reference/functions/tx) — a function for translating strings at runtime. Pass any string to [`tx()`](/docs/node/reference/functions/tx) and get back a translated version, with no build step needed.

This enables server-side translation of dynamic content: user-generated text, database values, API responses, or anything that isn&#39;t known ahead of time.

## Usage

### Basic

```js
import { tx } from 'gt-node';

const translated = await tx('Processing complete');
```

### With variables

```js
const translated = await tx('Hello, {name}!', { name: 'María' });
```

### Specifying a locale

```js
const status = await tx('Order shipped', { $locale: 'ja' });
```

## Links

* [PR #1207](https://github.com/generaltranslation/gt/pull/1207)

## Sitemap

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