Linter package used to check Fluent files
Project description
Fluent Linter
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.5
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
moz-fluent-linter-0.4.5.tar.gz
(17.2 kB
view details)
Built Distribution
File details
Details for the file moz-fluent-linter-0.4.5.tar.gz
.
File metadata
- Download URL: moz-fluent-linter-0.4.5.tar.gz
- Upload date:
- Size: 17.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 942bd8f4ecb3c566e28892e6192b9f59114a26fbc11f27911048c7ec5a82e819 |
|
MD5 | 2853862cf0c7e549bfb97992084d91e6 |
|
BLAKE2b-256 | c7a767ee05f7d2aa9320aaab0278f868530d6eea7be8d38b57d9a53613d7dfeb |
File details
Details for the file moz_fluent_linter-0.4.5-py3-none-any.whl
.
File metadata
- Download URL: moz_fluent_linter-0.4.5-py3-none-any.whl
- Upload date:
- Size: 14.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a65051465715e46e147d71bd035187672107ec8d4f5898b6043ead29c51df44a |
|
MD5 | 19cf3d1fc85c54c9ae8c429efbb9a7d2 |
|
BLAKE2b-256 | afbf10d9ea572a8e912ee140510f2c25741941bf3f88a9bce8a4ae4f1101eeb4 |