Skip to content

Linter for localization files powered by Weblate

License

Notifications You must be signed in to change notification settings

WeblateOrg/locale_lint

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weblate

Weblate is libre software web-based continuous localization system, used by over 2500 libre projects and companies in more than 165 countries.

Weblate Locale Linter

Linter for localization files powered by Weblate.

This project is in beta. The interface, features, supported formats are subject to change without any intent to keep backward compatibility.

Website Translation status CII Best Practices PyPI package Documenation

Using manually

The Python module can be installed from the PyPI:

pip install locale_lint

Run to lint current directory:

locale_lint lint

Using as GitHub action

Paste following snippet to your workflow YaML:

- name: Weblate Locale Linter
  uses: WeblateOrg/[email protected]

Using as pre-commit hook

Paste following snippet to your pre-commit configuration YAML:

- repo: https://github.com/WeblateOrg/locale_lint
  rev: v0.2.2
  hooks:
  - id: locale_lint

Supported formats

All file formats supported by Weblate will be supported. We will gradualy add support for more formats during the beta.

  • Android resource strings
  • GNU Gettext PO files

Contributing

Contributions are welcome! See documentation for more information.