# Get i18next resources for a language

Canonical page: https://docs.ovok.com/api/localization-keys/get-i18next-resources-for-a-language

`GET /localization/i18next/{language}`

Returns all localizations of one language as a nested i18next resource object. Apps load it to initialise i18next.

**Auth:** bearer token.
**Scope:** the caller's project (from the token). Localizations are read and written with your token.

## Behaviour

- `language` must be one of the languages in your project's locale settings (`GET /locales`).
- Dot-separated keys are turned into nested objects: `home.screen.title` becomes `{ "home": { "screen": { "title": "..." } } }`.
- If a key is both a value and the parent of other keys, for example `home` and `home.title`, the nested object wins and the value of `home` is left out.
- At most 10,000 entries are included.
- The result per project and language is cached. A `PATCH` to this language becomes visible only after its background job has finished.

## Example

```bash
curl -X GET 'https://api.sandbox.ovok.com/localization/i18next/en-US' \
  -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE3NjcyNjg4MDAsImV4cCI6MTc2NzI3MjQwMH0.Ql3B_ztDvctlyZ2z0vp4sl3ExXRQGkzmxdmTAqxNzZk'
```
