Metadata-Version: 2.4
Name: locale_lint
Version: 0.3.1
Summary: Weblate Locale Linter
Author-email: Michal Čihař <michal@cihar.com>
License-Expression: GPL-3.0-or-later
Project-URL: Documentation, https://docs.weblate.org/
Project-URL: Download, https://github.com/WeblateOrg/locale_lint
Project-URL: Funding, https://weblate.org/donate/
Project-URL: Homepage, https://weblate.org/
Project-URL: Issue Tracker, https://github.com/WeblateOrg/locale_lint/issues
Project-URL: Source Code, https://github.com/WeblateOrg/locale_lint
Project-URL: Twitter, https://twitter.com/WeblateOrg
Keywords: i18n l10n gettext git mercurial translate
Platform: any
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Internationalization
Classifier: Topic :: Software Development :: Localization
Classifier: Topic :: Utilities
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: click<9.0,>=8.0
Requires-Dist: translate-toolkit<3.16.0,>=3.5.1
Requires-Dist: translation-finder<3.0,>=2.11
Provides-Extra: lint
Requires-Dist: pre-commit==4.2.0; extra == "lint"
Provides-Extra: test
Requires-Dist: pytest; extra == "test"
Requires-Dist: pytest-cov; extra == "test"
Dynamic: license-file

<a href="https://weblate.org/"><img alt="Weblate" src="https://s.weblate.org/cdn/Logo-Darktext-borders.png" height="80px" /></a>

**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](https://img.shields.io/badge/website-weblate.org-blue.svg)](https://weblate.org/)
[![Translation status](https://hosted.weblate.org/widgets/weblate/-/svg-badge.svg)](https://hosted.weblate.org/engage/weblate/?utm_source=widget)
[![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/552/badge)](https://bestpractices.coreinfrastructure.org/projects/552)
[![PyPI package](https://img.shields.io/pypi/v/locale_lint.svg)](https://pypi.org/project/locale_lint/)
[![Documenation](https://readthedocs.org/projects/weblate/badge/)](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.
