0.1.0-beta.0 • Published 8 months ago
@anchanix/fluent-utils v0.1.0-beta.0
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-utils
Alternatively the CLI can be run on demand:
pnpm dlx @anchanix/fluent-utils check
Usage
CLI Commands
Check
Check your .ftl
files for syntax errors and languages missing keys.
pnpm dlx @anchanix/fluent-utils check
Types
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 types
Planned features
- Github actions support for the
check
command - Other languages supported by the
type
command
0.1.0-beta.0
8 months ago