easyi18n_cli 0.2.0
easyi18n_cli: ^0.2.0 copied to clipboard
Command-line tool for easyi18n. Pulls translated localization files (Mode A, native .arb) and pushes your tr() source strings for translation.
Changelog #
0.2.0 #
easyi18n push: statically extractstr()source strings from your source tree (canonicalcontext.tr('…')and the'…'.tr()sugar), diffs them against a committedeasyi18n.lock, previews the credit cost, and registers + translates them via the backend. Flags:--dry-run,--yes,--max-credits,--prune,--lang,--source-dir.easyi18n extract: the same scan, offline and read-only: reports extractable strings, new/orphaned vs the lockfile, and dynamic (non-literal) calls.--fail-on-orphansfor CI drift checks.
0.1.0 #
- Initial CLI (
easyi18n) for Mode A (native.arb). easyi18n initwrites aneasyi18n.yamlconfig.easyi18n pulldownloads translated files from the authenticated backend (GET /v1/projects/{id}/translations) and writes them to disk so you can runflutter gen-l10n. Supports--version,--lang, and--dry-run.