---
editLink: false
lastUpdated: false
---

[@salesforce/b2c-tooling-sdk](../../modules.md) / [i18n](../index.md) / getI18nInstance

# Function: getI18nInstance()

> **getI18nInstance**(): `i18n`

Defined in: [packages/b2c-tooling-sdk/src/i18n/index.ts:240](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/e7c16f1ae423da0aa47b3e10be88f9770b53619b/packages/b2c-tooling-sdk/src/i18n/index.ts#L240)

Get the i18next instance for advanced usage.

Use this to:
- Add translations from other packages (e.g., b2c-cli adding 'cli' namespace)
- Add additional languages at runtime

## Returns

`i18n`

## Examples

```ts
// Add a new namespace from b2c-cli
getI18nInstance().addResourceBundle('de', 'cli', {
  command: {
    sites: { description: 'Sites-Befehle' }
  }
})
```

```ts
// Add a new language
getI18nInstance().addResourceBundle('fr', 'b2c', {
  error: {
    serverRequired: 'Le serveur est requis.'
  }
})
```
