https://github.com/weblateorg/locale_lint
Linter for localization files powered by Weblate
https://github.com/weblateorg/locale_lint
gettext hacktoberfest i18n localization weblate
Last synced: 3 months ago
JSON representation
Linter for localization files powered by Weblate
- Host: GitHub
- URL: https://github.com/weblateorg/locale_lint
- Owner: WeblateOrg
- License: gpl-3.0
- Created: 2022-01-17T08:29:01.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-07-04T07:31:16.000Z (3 months ago)
- Last Synced: 2025-07-04T08:33:54.497Z (3 months ago)
- Topics: gettext, hacktoberfest, i18n, localization, weblate
- Language: Python
- Homepage:
- Size: 412 KB
- Stars: 8
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.rst
- Funding: .github/FUNDING.yml
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
**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._
[](https://weblate.org/)
[](https://hosted.weblate.org/engage/weblate/?utm_source=widget)
[](https://bestpractices.coreinfrastructure.org/projects/552)
[](https://pypi.org/project/locale_lint/)
[](https://docs.weblate.org/en/latest/locale_lint.html)## Using manually
The Python module can be installed from the PyPI:
```console
pip install locale_lint
```Run to lint current directory:
```console
locale_lint lint
```## Using as GitHub action
Paste following snippet to your workflow YaML:
```yaml
- name: Weblate Locale Linter
uses: WeblateOrg/locale_lint@v0.2.2
```## Using as pre-commit hook
Paste following snippet to your pre-commit configuration YAML:
```yaml
- repo: https://github.com/WeblateOrg/locale_lint
rev: v0.2.2
hooks:
- id: locale_lint
```## Supported formats
All [file formats supported by
Weblate](https://docs.weblate.org/en/latest/formats.html) 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](https://docs.weblate.org/en/latest/contributing/modules.html) for more information.