alepha@docs:~/docs/framework/packages/alepha/cli$
cat i18n.md | pretty1 min read
Last commit:
#Alepha - Cli I18n
#Installation
Part of the alepha package. Import from alepha/cli/i18n.
npm install alepha
#Overview
CLI plugin for finding unused translation keys.
Statically scans the project for $dictionary(...) calls, extracts
every declared key, and reports the ones that have no quoted-literal
reference anywhere else in the source tree. Designed to be wired
into yarn v (or any verify pipeline) so dead i18n entries can't
pile up unnoticed when a feature is removed.
Commands:
alepha i18n check— report unused translation keys
Configuration in alepha.config.ts:
typescript
1import { i18n } from "alepha/cli/i18n"; 2 3export default defineConfig({ 4 plugins: [ 5 i18n({ 6 scan: ["src", ".vendor/@alepha/ui"], 7 dynamicPrefixes: ["folio.type.", "feedback.filter."], 8 }), 9 ],10});