{"library":"fluent-compiler","type":"library","category":null,"description":"fluent-compiler (v0.1.0, stable pre-release) is a JavaScript transpiler for Project Fluent's FTL format. It compiles FTL messages into ES6 modules that export FluentBundle-compatible objects, shifting compilation from runtime to build time. Unlike the core `fluent` package (which ships a ~10kB runtime compiler), `fluent-compiler` outputs pre-compiled code with a ~1.2kB runtime dependency, reducing browser bundle size. It supports locale identifiers, optional AST input from `fluent-syntax`, configurable runtime imports, and Unicode isolation marks. Suitable for Node.js >=8.9.0 and build pipelines (Webpack, Rollup). Note: The runtime API is based on a draft PR (#360) and may change.","language":"javascript","status":"active","version":"0.1.0","tags":["javascript","localization","l10n","internationalization","i18n","ftl","ast","compiler","transpiler"],"last_verified":"Fri May 01","install":[{"cmd":"npm install fluent-compiler","imports":["import { compile } from 'fluent-compiler'","import messages from './compiled.ftl.js'","import type { FluentBundle } from 'fluent-compiler/runtime'"]},{"cmd":"yarn add fluent-compiler","imports":[]},{"cmd":"pnpm add fluent-compiler","imports":[]}],"homepage":null,"github":"https://github.com/eemeli/fluent-compiler","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/fluent-compiler","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}