Skip to main content

Fluent Linter

PyPI version

Unit Tests

This script is largely based on the Fluent Linter used in mozilla-central for Firefox localization.

It allows to check reference FTL files for common issues:

  • Identifiers too short
  • Invalid characters available used in identifiers
  • Use of incorrect characters (e.g. ' instead of ’)

It also allows to limit the range of features supported, for example disabling attributes or variants.

Version control integration

Using pre-commit, add this to the .pre-commit-config.yaml in your repository:

repos:
  - repo: https://github.com/mozilla-l10n/moz-fluent-linter
    rev: v0.4.10
    hooks:
      - id: fluent_linter
        files: \.ftl$
        args: [--config, l10n/linter_config.yml, l10n/en/]

This is just an example to get you started, you may need to update the rev and args depending on your specific needs and configuration.

Metadata

Release files for moz-fluent-linter 0.4.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for moz-fluent-linter 0.4.10
File Size Uploaded
moz_fluent_linter-0.4.10.tar.gz 18.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for moz-fluent-linter 0.4.10
File Interpreter ABI Platform
moz_fluent_linter-0.4.10-py3-none-any.whl Python 3 none any Details

Total release size: 33.5 kB

Release files / moz_fluent_linter-0.4.10.tar.gz

Download URL moz_fluent_linter-0.4.10.tar.gz
Size 18.6 kB
Tags Source
SHA-256 checksum
How to use checksums
31cc598c9d7fac2ad4a0fbee5817a4db602dd3f702ad9987741a2e8a8c9fdc3f
BLAKE2b-256 checksum
How to use checksums
8ac72be5e94e5636a93ac0c56d8e6b88337c6a83106a69a43ef195d10e48d271
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.11

Release files / moz_fluent_linter-0.4.10-py3-none-any.whl

Download URL moz_fluent_linter-0.4.10-py3-none-any.whl
Size 15.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
748fc6e14a3009623928682831c2a0bb1190deea15987e4dddcaa66b867d8904
BLAKE2b-256 checksum
How to use checksums
093978c877fc94ed0de2b27cf69ffe56ccd8b1201c749d8248c0b22719b28ed9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.11

Release history Release notifications | RSS feed

This release

0.4.10 This release

2 release files

0.4.9

2 release files

0.4.8

2 release files

0.4.7

2 release files

0.4.6

2 release files

0.4.5

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.8

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page