Metadata-Version: 2.1
Name: locale-lint
Version: 0.2.2
Summary: Weblate Locale Linter
Home-page: https://weblate.org/
Author: Michal Čihař
Author-email: michal@cihar.com
License: GPL-3.0-or-later
Download-URL: https://github.com/WeblateOrg/locale_lint
Project-URL: Issue Tracker, https://github.com/WeblateOrg/locale_lint/issues
Project-URL: Documentation, https://docs.weblate.org/
Project-URL: Source Code, https://github.com/WeblateOrg/locale_lint
Project-URL: Twitter, https://twitter.com/WeblateOrg
Project-URL: Funding, https://weblate.org/donate/
Keywords: i18n l10n gettext git mercurial translate
Platform: any
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
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.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Topic :: Software Development :: Internationalization
Classifier: Topic :: Software Development :: Localization
Classifier: Topic :: Utilities
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Requires-Dist: click (<9.0,>=8.0)
Requires-Dist: translate-toolkit (<3.6.0,>=3.5.1)
Requires-Dist: translation-finder (<3.0,>=2.11)

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

**Weblate is a copylefted 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:

    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/locale_lint@v0.2.2

## 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](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


