CLI Usage
Compile translation keys from the command line.
Usage
Use the fuma-translate CLI to scan source files and write generated translation files.
fuma-translate "src/**/*.tsx"By default, the CLI writes two files to .translations:
index.tsexports the strictTranslationstype.manifest.jsoncontains the sorted list of translation keys for tooling.
Options
Glob patterns
Pass one or more glob patterns:
fuma-translate "src/**/*.{ts,tsx}" "components/**/*.tsx"Wrap globs in quotes so your package manager passes them to Fuma Translate instead of expanding them in the shell.
Output directory
Use --out to write generated files somewhere else:
fuma-translate --out generated/translations "src/**/*.tsx"Watch mode
Use --watch during development:
fuma-translate --watch "src/**/*.tsx"The CLI recompiles when matching files change and ignores the output directory.