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.9
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file moz_fluent_linter-0.4.9.tar.gz.
File metadata
- Download URL: moz_fluent_linter-0.4.9.tar.gz
- Upload date:
- Size: 17.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d75e740e1678cca490b25afeff6da64e65be6727a97fa0a54c5c61077869290
|
|
| MD5 |
b1f9bdbcef94a72edf82839eb29d9e66
|
|
| BLAKE2b-256 |
c7e08afe4588b539ab05d2d8d086110b90b75ebd1109312efcd3b9dd97ad06da
|
File details
Details for the file moz_fluent_linter-0.4.9-py3-none-any.whl.
File metadata
- Download URL: moz_fluent_linter-0.4.9-py3-none-any.whl
- Upload date:
- Size: 14.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2143196e4eda09475edf85e0f2aa47c5428bf62ba059cfe084570d5046fbcf9f
|
|
| MD5 |
98386fb628d0616412076db634aa2ebc
|
|
| BLAKE2b-256 |
367e907df3d4069896bd55d51bbe59d69864f12064c85d5285017f5c40373db0
|