CLI — Aquilia Documentation
Comprehensive guide and documentation for CLI in the Aquilia framework. View API reference, examples, and implementation patterns.
i18n / CLI i18n CLI Reference The aq i18n command group covers catalog initialization, validation, extraction, coverage measurement, and SURP compilation. Commands are registered in the CLI entrypoint and implemented in aquilia/cli/commands/i18n.py. Command Surface Command Purpose ))} aq i18n init aq i18n init --locales en,fr,de --directory locales --format json aq i18n init --locales en --directory translations --format yaml • Bootstraps locale folders and starter files such as locales/en/messages.json. • Skips files that already exist and only creates missing locale assets. aq i18n check and inspect aq i18n check aq i18n check --verbose aq i18n inspect • check validates enabled, default, fallback and resolver settings. • inspect prints effective configuration JSON using workspace-first load behavior. aq i18n extract aq i18n extract --source-dirs modules,templates --output locales/en/messages.json aq i18n extract --source-dirs modules,controllers --output locales/en/messages.json --no-merge Extraction scans translation calls in Python and template files, expands dotted keys to nested JSON, and merges with existing values. aq i18n coverage aq i18n coverage aq i18n coverage --verbose aq i18n compile aq i18n compile aq i18n compile --directory locales aq i18n compile --directory locales --output artifacts/locales )
Go to Homepage