diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 25f65352..8c517ecf 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -66,6 +66,15 @@ repos: args: [check, --bare, -r] language: system +# Check translation comments are up to date +- repo: local + hooks: + - id: LANG_comments + name: 'LANG comments' + language: system + entry: python scripts/find_localised_strings.py --compare-lang L10n/en.template --directory . --ignore coriolis-data --ignore dist.win32 + pass_filenames: false + default_language_version: python: python3.9