The rules of git8n check
An error fails the check. A warning fails it only past --max-warnings. Each problem names its rule, and the CLI prints the address of its page.
| Rule | Level | What it finds |
|---|---|---|
invalid-json | error | The file is not a JSON object. |
invalid-manifest | error | The manifest is not valid. |
not-a-string | error | A value is not a string or an object. |
placeholders | error | The translation does not keep the placeholders of the source. |
icu-plural-forms | warning | An ICU plural does not have the forms of its language. |
unknown-link | error | A linked message of vue-i18n names a key that does not exist. |
plural-branches | warning | A plural of vue-i18n does not have the branches of the source. |
missing-key | warning | A key of the source has no translation. |
empty-value | warning | A translation is empty, and the manifest does not mark it. |
stale-empty | warning | A key is empty on purpose, but its source changed since. |
empty-source | warning | A text of the source is empty. |
extra-key | warning | A key is not in the source. |
extra-file | warning | A file has no version in the source. |
skipped-file | warning | The editor leaves out a file with this name. |