@anchanix/fluent-utils
v0.1.0-beta.1
Published
This is a collection of utilities for working with the [Fluent](https://projectfluent.org/) localization system.
Readme
Fluent Utilities
This is a collection of utilities for working with the Fluent localization system.
Installation
Utility functions can be installed from the npm registry:
pnpm install @anchanix/fluent-utilsAlternatively the CLI can be run on demand:
pnpm dlx @anchanix/fluent-utils checkUsage
CLI Commands
Check
Check your .ftl files for syntax errors and languages missing keys.
pnpm dlx @anchanix/fluent-utils checkTypes
Generate a typings file from .ftl files. The type information will include built-in fluent functions, custom functions used in your files as well as a object mapping each message key to the required variables and any attributes it may provide.
pnpm dlx @anchanix/fluent-utils typesPlanned features
- [ ] Github actions support for the
checkcommand - [ ] Other languages supported by the
typecommand
