# General Translation React SDKs (gt-react, gt-next): Formatting numbers and dates URL: https://generaltranslation.com/en-GB/docs/react/guides/formatting-variables.mdx --- title: Formatting numbers and dates description: How to insert locale-aware numbers, currencies, dates and variables into General Translation content across React, Next.js, TanStack Start and React Native. related: links: - /docs/react/guides/handling-plurals-and-branches - /docs/react/guides/translating-jsx - /docs/react/guides/translating-strings - /docs/react/guides/managing-locales --- Dynamic values inside translated content need to be marked so they are not sent for translation, and formatted values need to respect the reader's locale. General Translation provides variable components for both. These components come from the same core across every framework — only the import package differs. ## Insert a raw value with `` [#var] Use [``](/docs/react/reference/components/var) for dynamic content that should render as-is, such as a user name. It marks the value as a variable so the surrounding text stays translatable. ```tsx import { T, Var } from 'gt-react';

Signed in as {user.email}

; ```
```tsx import { T, Var } from 'gt-next';

Signed in as {user.email}

; ```
```tsx import { T, Var } from 'gt-tanstack-start';

Signed in as {user.email}

; ```
```tsx import { T, Var } from 'gt-react-native'; Signed in as {user.email} ; ```
## Format numbers and currency [#numbers] Use [``](/docs/react/reference/components/num) and [``](/docs/react/reference/components/currency) for locale-aware number and money formatting. Both accept `Intl` options, and both are imported from your framework's package alongside [``](/docs/react/reference/components/t). ```tsx

You have {count} items totaling {total}.

; ``` `` defaults to `USD`; pass `currency` for another code. It formats the value for the locale but does not convert between currencies. ## Format dates and times [#dates] Use [``](/docs/react/reference/components/datetime) for absolute dates and times, and [``](/docs/react/reference/components/relative-time) for relative values such as "3 days ago". Both accept `Intl` formatting options and an optional `locales` override. ```tsx

Published {publishedAt} ({publishedAt}).

; ``` `` can also take an explicit `value` and `unit` (for example `value={-3}` with `unit="day"`) instead of a date. See the [Components reference](/docs/react/reference/components/num) for every prop these components accept. ## Next steps - /docs/react/guides/handling-plurals-and-branches - /docs/react/guides/translating-jsx - /docs/react/guides/translating-strings - /docs/react/guides/managing-locales