Skip to content

check-translations

The check-translations command is part of the LightNet CLI.

Terminal window
pnpm lightnet check-translations

Use this command to find translations that are still missing your site’s languages.

Run it from the root of your LightNet site project.

The command asks whether to run pnpm build for you. When you confirm, the build runs as part of the check and the translation results are read from that build.

Use it when you want to:

  • catch incomplete translations before deploying
  • review translation work after adding a new language
  • check inline translation maps after editing content or templates

Check translations:

Terminal window
pnpm lightnet check-translations

Run a build before checking translations:

Terminal window
pnpm lightnet check-translations --build

Check translations without running a build or showing a prompt:

Terminal window
pnpm lightnet check-translations --no-build
  • --build: runs pnpm build before checking translations.
  • --no-build: skips the build prompt and checks the latest available build output.

If the command reports missing translations, add the missing values to the content or template that owns them.