# translations

> Translated interfaces: no literal text in components, and message files that parse and stay complete in every locale.

Translated interfaces: no literal text in components, and message files that parse and stay complete in every locale. It requires [`javascript`](/reference/configurations/javascript/).

## Checks

| Check                                                               | Stage  | Level         | What it does                                                                                                                                                 |
| ------------------------------------------------------------------- | ------ | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [`translations/messages`](/reference/checks/translations/messages/) | `push` | `recommended` | Checks the next-intl JSON/ICU files under `translations.messages_folder`: each message parses, none stays empty, and each locale holds all keys of the base. |

## Settings

| Setting                                                                               | What it sets                                                                      |
| ------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- |
| [`translations.base_locale`](/reference/gspot-toml/#translations.base_locale)         | The locale whose message keys every other locale must contain.                    |
| [`translations.messages_folder`](/reference/gspot-toml/#translations.messages_folder) | The folder of the `<locale>.json` message files, relative to the repository root. |

## Selected when

gspot selects it in a scope with dependencies `next-intl`, `react-i18next`, `i18next`, `react-intl`, `@lingui/core`.

## Rules for coding agents

| Rule file                                                          | Installed when                               |
| ------------------------------------------------------------------ | -------------------------------------------- |
| `.gspot/configurations/library/translations/rules/NEXT-INTL.md`    | The repository has dependencies `next-intl`. |
| `.gspot/configurations/library/translations/rules/TRANSLATIONS.md` | Always                                       |

## Tools and versions

| Tool                  | Version |
| --------------------- | ------- |
| eslint-plugin-i18next | `6.1.5` |
