Skip to content

translations/messages

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.

Part of the translations configuration, at the recommended level. It runs at the push stage, once per scope. gspot runs this check itself. It skips until you set translations.messages_folder.

next-intl loads one locale at a time, so only a comparison with the base finds a missing key.

Correct the message, or add the missing key to the locale.

When the base locale defines welcome and another lacks it, the check reports the missing key. Add the translation with the same placeholders.

Turn it off for some files, with a reason:

gspot ignore translations/messages --paths "<glob>" --reason "<why>"