@jag-k/fluent-kit weekly downloads statistics
By jag-k · npm · Webpack plugins
Tooling of @jag-k/fluent: the l10n CLI (extract the code's texts into FTL, type t.byId, check translations), its config, and plugins for Vite, Rollup, Rolldown, webpack, Rspack, esbuild and Bun.
@jag-k/fluent-kit has 608 recorded weekly downloads on npm, a change of +94.2% over the past 7 days, ranking #2211 of 3,247 tracked listings.
About @jag-k/fluent-kit
@jag-k/fluent-kit
The l10n CLI and bundler plugins for @jag-k/fluent. It extracts the texts your code passes to t, msg and Localized into a source FTL catalogue, writes a .d.ts that types t.byId, and checks every translation: missing, stale, unused, variables, plurals, and text left hardcoded in markup.
Under development and not yet published: APIs may change.
npm install -D @jag-k/fluent-kit
Requirements. The CLI runs on Node ≥ 22.18 (a l10n.config.ts loads through Node's type stripping) or on Bun (bun --bun l10n, which also resolves the tsconfig's paths aliases in modules). Input may be TypeScript or JavaScript (.ts, .tsx, .js, .jsx by default, and other extensions through explicit globs).
Variable types (for the @vars the translators see, the .d.ts of t.byId, and checks such as a plural on a string) come in two layers:
- The expression's shape, always:
number(x),date(x),list(xs)(from@jag-k/fluentor your re-export), literals, template strings,new Date(),.length/.size,Number(),Math.*,Date.now(), string methods (toFixed,join…), arithmetic,cond ? "a" : "b",x as number. Fast, no tooling; anything else (a plain variable, a call of your own) stays unknown. - TypeScript (7.0.2 or later; 7.1's stable API, else 7.0's
unstableone), when installed with a tsconfig: the real type of every value, imports and inference included. A JavaScript project without it is fine: the shapes and the FTL (a plural selector means a number) are used, quietly.
Quickstart
Give your app a module with t and msg (see @jag-k/fluent), then write l10n.config.ts next to package.json:
import { code, defineConfig, types } from "@jag-k/fluent-kit";
export default defineConfig({
sourceLocale: "en",
locales: ["en", "ru"],
catalogues: {
app: {
files: (locale) => `locales/${locale}/*.ftl`,
generate: {
// The code's texts are written here; this file belongs to the tool.
"locales/en/app.ftl": [code({ include: ["src"], modules: { "./l10n": { t: ["t"], msg: ["msg"] } } })],
},
outputs: [types("types/l10n.d.ts")], // types t.byId; a build output, don't commit it
},
},
});
l10n extract # writes locales/en/app.ftl and types/l10n.d.ts
# translate: locales/ru/app.ftl with the same ids
l10n stamp ru --all # after reviewing all Russian translations
l10n check # fails when something is missing, stale or broken
modules names the import specifier of your t module, as the code writes it ("./l10n", "@app/l10n"). Any import that resolves to the same file also matches.
Commands
| Command | What it does |
|---|---|
l10n extract | Writes the generated catalogues and outputs from the code. --check writes nothing and exits 1 if anything would change; --watch keeps running (--full types every file on every run); --no-types skips the TypeScript API. |
l10n check | Checks that extraction is up to date, then checks every catalogue and translation. |
l10n types | Writes only the .d.ts, from the catalogues on disk. It is fast: run it before a typecheck on a fresh checkout. |
l10n stamp <locale> [id…] | Records the current source above the reviewed translations. With no ids, prints how many stamps it will update and stamps the whole locale. Pass --all to explicitly request bulk stamping. |
l10n prune [--dry-run] | Removes unused hand-written source messages and obsolete translations, including their attached comments. Prints the file, id and reason for each removal. |
For a selective stamp, pass message ids such as l10n stamp ru greeting save-button. Every requested id must have both a source and a translation in that locale. The command validates all ids before writing.
l10n extract refreshes source context (@context, @note, @vars and @used) on existing translations. It preserves translations, group headings, and the translators' own comments. When the source text changes under the same id, it adds # l10n-todo and keeps the old source snapshot. For an unstamped translation, it can detect a change when extraction replaces an existing generated source entry. Changes to context alone do not require review.
Once a translation has been reviewed against the new source, l10n stamp <locale> <id> refreshes its context and snapshot and clears its review marker. l10n check reports stale stamps even before running extraction. Use l10n extract --check to see which translation files an extraction would update.
l10n prune --dry-run previews the removals without writing files. Source pruning follows the unused check. Translations of source messages removed in the same run are obsolete too. Run l10n extract first if generated sources need updating.
Global options include --config <path>, -h/--help and -v/--version. The exit codes are 0 for success, 1 for problems and 2 for usage, config or Git errors.
Check output in Git hooks…
Description from the npm listing.
- bun-plugin
- cli
- esbuild-plugin
- extract
- fluent
- ftl
- i18n
- l10n
- localization
- rollup-plugin
- unplugin
- vite-plugin
- webpack-plugin
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (128)Similar npm Webpack plugins plugins
All 20 @jag-k/fluent-kit alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/@jag-k/fluent-kit. First seen Nov 24, 2026; last successful collection Dec 6, 2026. See the methodology.