> ## Documentation Index
> Fetch the complete documentation index at: https://stars-components.js.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Function: getT()

> **getT**\<`Ns`>(`locale`, `namespace?`): [`TFunction`](/documentation/api/http-framework-i18n/interfaces/TFunction)\<`Ns`>

Defined in: [packages/http-framework-i18n/src/lib/registry.ts:87](https://github.com/wolfstar-project/stars-components/blob/5aefd164bc5fc41e5a35d3abf908c288163dd354/packages/http-framework-i18n/src/lib/registry.ts#L87)

## Type Parameters

### Ns

`Ns` *extends* `Namespace` = `Namespace`

## Parameters

### locale

`"id"` | `"en-US"` | `"en-GB"` | `"bg"` | `"zh-CN"` | `"zh-TW"` | `"hr"` | `"cs"` | `"da"` | `"nl"` | `"fi"` | `"fr"` | `"de"` | `"el"` | `"hi"` | `"hu"` | `"it"` | `"ja"` | `"ko"` | `"lt"` | `"no"` | `"pl"` | `"pt-BR"` | `"ro"` | `"ru"` | `"es-ES"` | `"es-419"` | `"sv-SE"` | `"th"` | `"tr"` | `"uk"` | `"vi"`

### namespace?

`Ns`

## Returns

[`TFunction`](/documentation/api/http-framework-i18n/interfaces/TFunction)\<`Ns`>
