Skip to content

extra-file ​

Warning · A file has no version in the source.

git8n check reports this rule as a warning. It fails only past --max-warnings.

Why it matters ​

The editor reads the files of the source. A file of a language alone is a file that nobody can see or translate there.

Invalid ​

locales/en/common.json

json
{
  "title": "Hello"
}

locales/fr/common.json

json
{
  "title": "Bonjour"
}

locales/fr/legacy.json

json
{
  "title": "Ancien"
}
text
$ git8n check --source en
locales/fr/legacy.json
  warning  legacy.json has no version in en.  extra-file

Read more:
  extra-file  https://git8n.sakuga.dev/docs/reference/rules/extra-file.html

0 errors, 1 warning in 3 files (en → fr, 1 key).

Valid ​

locales/en/common.json

json
{
  "title": "Hello"
}

locales/fr/common.json

json
{
  "title": "Bonjour"
}
text
$ git8n check --source en
0 errors, 0 warnings in 2 files (en → fr, 1 key).

What to do ​

Delete the file, or add its version to the source.

All the rules · The command check