easyi18n_cli 1.3.0
easyi18n_cli: ^1.3.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 #
1.3.0 #
- Add a Codex plugin with generated setup and translate skills and the MCP server. Document installation, Agent keys and migration from a manual server.
- Make workflow references usable in clients that expose skills instead of MCP prompts. Keep both clients' skills identical to the canonical prompts.
1.2.2 #
The commands and the MCP tools are those of 1.2.1. What changes is where the public repositories live, and with it the URLs the CLI writes and downloads from.
- The source of the CLI and its binaries live in
easyi18n-com/dart. pub.dev lists it as the repository and issue tracker,easyi18n initwrites# Docs: https://github.com/easyi18n-com/dartin the header ofeasyi18n.yaml, andinstall.sh, the npm package and the Claude Code plugin download the binary from its releases. - The agent integrations live in
easyi18n-com/agents: the npm package@easyi18n.com/cliand the MCP Registry entrycom.easyi18n/clipoint there, and Gemini CLI installs the server withgemini extensions install https://github.com/easyi18n-com/agents. - The Claude Code marketplace is named
easyi18n.comand is added with/plugin marketplace add easyi18n-com/agents. The plugin README no longer has the section on moving an install from the old marketplace.
1.2.1 #
The binary, its commands and the MCP tools are those of 1.2.0. What changes is how the server is listed and installed.
- The npm package
@easyi18n.com/clideclares"mcpName": "com.easyi18n/cli", the name the official MCP Registry checks before it lists the server. - Gemini CLI installs the server with
gemini extensions install https://github.com/liontude/easyi18n-agents: the extension iseasyi18nand its servercli. - The Claude Code plugin names its pieces once: the marketplace is
liontude, the command/easyi18n:doctor, the skillseasyi18n:setupandeasyi18n:translate, and the serverplugin:easyi18n:cli. An install made before keeps the marketplace nameeasyi18n; the plugin README says how to move. - The plugin runs no hook at session start. Claude Code starts the MCP server first, and its launcher already installs the CLI.
1.2.0 #
- The MCP
init, with your login and no project ref oreasyi18n.yaml, answers your workspaces and their projects instead of "Missing project ref", and writes nothing: the agent asks you which one to link or what to create.init {workspace, create: {name, base_code?, target_languages?}}creates the project with this tree's stack and base language, enables its output format and writeseasyi18n.yaml.createis refused with an API key inEASYI18N_TOKEN, over an existingeasyi18n.yamlwithoutforce, and withdry_run. Thesetupprompt sends you toeasyi18n loginfirst and keeps the Agent key for CI. The MCP never mints an API key. easyi18n initwith your login and no project ref sets the project up on the server: it lists your workspaces, links a project or creates one (named after the directory, base language from the catalog or the source file, target languages), adds the languages a linked project lacks and enables its output format, then writeseasyi18n.yaml. Without a terminal,--workspace,--project,--create,--languagesand--basemake the same choices. On a Free workspace that already has 3 projects it shows the server's message, names Workspace > Billing and offers to link one instead, and writes nothing.--cimints an API key for CI and prints it once with thegh secret set EASYI18N_TOKENline. With a login, the last line no longer says to setEASYI18N_TOKEN.--workspaceand--projectalone, orEASYI18N_TOKEN, keepinitoffline as before.easyi18n whoamiasks the server whether the login still works (GET /v1/me) and lists its workspaces, with the role in each and their projects. A login the server refuses ends with exit 1 andvalid: false. A server it cannot reach, or one without the route yet, leaves what this machine stored, with a warning, exit 0 andvalid: null.--jsonaddsvalidandworkspaces.easyi18n mcp configprints snippets withoutEASYI18N_TOKEN: the server sends this machine'seasyi18n login.--agent-keyaddsmcp --require-agent-key. The server refuses to start with a missing key or the example placeholder.- The MCP server (
easyi18n mcp) takes the logineasyi18n loginstored for the base URL of each call whenEASYI18N_TOKENis unset, blank or the placeholder, and reads it on every call: a login or a logout in another terminal needs no restart of the client. With the login,push,sync,publishandrollbackgo without anoperation_id, andauthorizemints no operation and answers which tool to call, unless the server says that login needs an approval. An API key inEASYI18N_TOKENkeeps the approval rules as they were. An ingest aboveEASYI18N_MCP_MAX_CREDITSanswersabove_ceilingbefore sending anything.statusandinitwithouteasyi18n.yamlask the server nothing with a login:initasks for the project ref.doctornames the login on itscredentialline, also beforeinit, and itsagent_keycheck passes for a login. The server instructions, thesetupprompt, theAGENTS.mdblock and theno_credentialerror nameeasyi18n login. easyi18n loginlogs this machine in as you: it opens the approval page with the code in the URL (--no-browserprints the page and the code instead), waits for the approval and keeps the login for 30 days incredentials.json, 0600 inside a 0700 directory.--jsonprints{email, base_url, expires_at}, never the token. It uses the base URL the other commands call and refuses, before any request, one that is not production over https, a loopback address or exactlyEASYI18N_BASE_URL. A secondloginon the same base URL signs the previous one out, so logging in again does not spend one of the account's 10 logins.easyi18n logoutsigns the login of this base URL out on the server and forgets it here, also when the server cannot be reached, and says which happened.--jsonprints{base_url, removed, revoked}. Logins for other base URLs stay.easyi18n whoamishows the stored login's email and expiry, and says whenEASYI18N_TOKENis set and wins over it.--jsonprints{logged_in, email, base_url, expires_at, uses_env_token}; with no login, or an expired one, it exits 1 withnot_logged_inorlogin_expired. The--tokenhelp of every command, anddoctor's checks that need the API, now name the login.logout,whoamianddoctorname acredentials.jsonthis CLI cannot read, as the error with no credential does, without printing it. A disk that refuses to writecredentials.jsonendsloginorlogoutwith an error that names the file instead of a crash.- Every command that calls the API,
doctorincluded, sends the login stored incredentials.jsonfor the base URL of the call when neither--tokennorEASYI18N_TOKENnames a credential. The file lives in$XDG_CONFIG_HOME/easyi18n/, else~/.config/easyi18n/, and in%APPDATA%\easyi18n\on Windows;easyi18n loginwrites it. A blankEASYI18N_TOKEN, or theeik_YOUR_AGENT_KEYplaceholder thatmcp configprints, no longer hides the login. With no credential the error names the origin andeasyi18n login. A login the server refuses as expired or signed out prints the server's message without the hint to checkEASYI18N_TOKEN.doctor'scredentialline names the login, its email and its expiry. - Web:
doctorgrades the i18next ICU wiring per instance. In an app with a client and a server instance, such as Remix with remix-i18next, it saidokfor the first file that registeredi18next-icuwhile the server rendered ICU as raw text. Now each file that registers i18next plugins withouti18next-icugets awarnthat names it, with nook, andwiringfails only when no file registers the plugin. Aplugins: [...]oruse: [...]list counts as registering it, so next-i18next wired as its README shows no longer fails. The wiringinitprints says that every instance, the server's included, registers ICU. - Angular:
doctorreadsmessages.jsonas Angular's format.sourcecounts the ids undertranslations, where it countedlocaleas a key, and a config that saysjsonornested_jsonfails withset format: angular_json, where it told the agent to setnested_json, which the server refuses. A newidscheck warns when a message has no@@id: its id is a digest of the text, so editing the text starts its translation over; a plural or select is left out, since one nested in a message takes no@@idand the file does not tell it apart from a whole message that does.sync_previewlists the{$…}tokens of the file inprotected_tokens, and the MCPauthorizecounts the ids of the file: it counted none, which the server refuses. Thesetupandtranslateprompts, the server instructions, theAGENTS.mdblock and the plugin skills name the Angular branch. initwithout--stacksets up the stackdoctorchecks: the detected one, else the one an existingeasyi18n.yamldeclares, elseflutter. It set upflutterevery time, so in a web, Xcode, Android or Angular project it wrote a Flutter Mode B config withoutsource:, and the bareeasyi18n initthatdoctornames to rewriteAGENTS.mdwrote the Flutter block, which the nextdoctorreported as stale. A config the old default already wrote stays untilinit --forcerewrites it. A typed--stack,autoincluded, and the MCPinittool are unchanged.- Angular: a new
angularstack, also a value of the MCPinittool'sstack.init --stack autodetects an app with@angular/localizeinpackage.jsonand anangular.json, and writesformat: angular_json,source: src/locale/messages.jsonandoutput: src/locale. Its steps nameng extract-i18n --format=json --output-path=src/localeand the wiring:loadTranslationswhen the package is underdependencies(runtime),i18nandlocalizeinangular.jsonwhen it is underdevDependencies(build time).syncuploadsmessages.jsonand leaves out themessages.<locale>.jsonfiles thatpullwrites beside it. Underauto, an app that also uses Transloco, ngx-translate or i18next is refused withambiguous_stackuntil--stack angularor--stack webpicks one, and an Ionic or Capacitor app with@angular/localizeandandroid/isangular, where it wasandroid. - Web:
doctorfailssourcewhen the sync of its config would refuse the input: a second base-language file undersourceLayout: locale-filesorbase-tree(several_files_per_locale), or a config withoutsourceRootandsourceLayout(catalog_scope_unknown). The message is the refusal thatsyncandsync_previewprint, anddoctorexits with 1 where it exited with 0. Under MCP the finding carries thesourceLayoutremedy indetails, since a finding's message is cut at 200 characters. - The MCP tool descriptions name both credentials.
push,sync,publishandrollbacksend the agent toauthorizefirst: with an API key inEASYI18N_TOKENit passes the approvedoperation_id, and whenauthorizeanswers that none is needed, as it does for your login, the call goes without one. They asked for an approvedoperation_idwith any credential.authorizesays that with your login it creates nothing and answersnot_neededunless the server requires approval.add_languagetakes your login as well as a key with thewritescope, andstatussays that withouteasyi18n.yamlit names no project for your login. - A failed TLS handshake, such as a certificate the system does not trust,
is a connection failure, as a server that is down is: one line,
error: Could not reach <base URL>: HandshakeException: …, and exit 1; with--jsonthecli_errorrecord withretryable: true; over MCP the same record.status,pull,push,syncandlogin --no-browserended in an unhandled exception with exit 255 and an empty--jsonstdout, and the MCPstatusandpullansweredinternal_error. The certificate is still checked.
1.1.0 #
- Flutter Mode B:
initdeclaresandroid.permission.INTERNETinandroid/app/src/main/AndroidManifest.xml.flutter createdeclares it for debug and profile builds only, so a release build never reached delivery.doctorreads the main and release manifests and warns when the permission is missing or removed withtools:node="remove"; exit code 0, since a dependency can add it when Gradle merges the manifests. The### Flutterblock ofAGENTS.mdnames it, sodoctorreports that block as stale untilinitrewrites it. - The MCP
authorize {operation_id}waits for the human. While the operation is pending it reads it again every 5 s and answers as soon as the human approves or denies, or after 45 s withnext: wait, so the agent goes on without the human returning to the chat. A client that sends aprogressTokengetsnotifications/progressevery 10 s. Ten minutes after the server first saw the operation, the read answers at once withnext: ask_human;EASYI18N_MCP_APPROVAL_WAIT_SECONDSshortens that. A denied operation answersnext: stopand an expired onenext: reauthorize, where both used to answernext: authorize. The instructions and the translate prompt tell the agent to keep calling in the same turn. - Flutter Mode B:
initwriteseasyi18n: ^1.0.0. It wrote^0.2.0, which excludes the SDK 1.0.0. It also raises a^0.2.xthat an earlier init left, as it already raised a^0.1.x.doctorstill passes a^0.2.x, which resolves the SDK it checks for, and still fails a^0.1.x.
1.0.0 #
-
The first stable version is 1.0.0, not 0.13.0. It follows 0.13.0-rc.6; a constraint such as
^0.13.0does not resolve to it. -
The MCP
initrefusalunsupported_stackdoes not name what stack detection looks for: an agent asked to set easyi18n up read "web needs one of @jsverse/transloco, @ngx-translate/core, i18next in package.json" as the next step and installed i18next. On a tree no stack detects, it says easyi18n does not support the repository yet and tells the agent to tell the human so, with the supported stacks and the roadmap, without adding dependencies or files, or to callinitwithproject_dirif the app is in a subdirectory. A named stack on a tree another stack detects names that stack.code,supportedandroadmapare unchanged, and so is the CLI'sinitmessage. -
The MCP
initholds a namedstackto detection too. On a tree its adapter does not detect,stack: web(orxcode,android,flutter) answersunsupported_stackwithsupportedandroadmap, the wayautodoes, and writes nothing; the message names the stack. A named stack still picks among the stacks the tree has: a web app that commitsandroid/can nameandroid. The CLI's--stackis unchanged. -
With an Agent key in
EASYI18N_TOKENand noeasyi18n.yaml, the MCPstatus,initanddoctorno longer answerisError, and the first two read the key's project from the newGET /v1/credentialroute.statusanswersinitialized: false, the key'sproject(@handle/slug, or the project id while the workspace handle is unclaimed) andnext: init; with a config it addsinitialized: true.initwith noworkspace,projectorproject_idwrites that project intoeasyi18n.yaml, and its step says it was read fromEASYI18N_TOKEN. The stack is picked first, so a treeinitrefuses sends nothing, and the request passes the same base-URL check as every other.doctorreports the missing config as a failedconfigcheck. Thesetupprompt callsstatusfirst, sends the human to create a project and a key only onno_credential, and asks for the workspace handle and project slug only wheninitanswersMissing project ref, which is its answer from a server without the route; therestatusleavesprojectout. The CLI'sinitanddoctorare unchanged. -
init --stack androidandinit --stack autoset up a native Android app (file-first,format: android_xml). Detection needs a Gradle script at the root (settings.gradleorbuild.gradle,.ktstoo) or anAndroidManifest.xmlbesideres/, and ares/values/strings.xml;source:is that base file andoutput:itsres/. With several modules,inittakes thesrc/mainsource set first and names how many others it found.doctorcounts the<string>and<plurals>resources withouttranslatable="false"and lists thevalues-*locales (values-zh-rTWiszh-TW,values-b+zh+Hantiszh-Hant).syncuploads the base, then eachvalues-<lang>/strings.xmlof a project language with itslang, so the strings translated by hand are imported and the fill translates only the rest. A directory whose qualifier names no language is never sent, and a language the project lacks is named and left out.pullwritesvalues-<qualifier>/strings.xmland never the base.androidleaves the roadmap ofunsupported_stackfor the supported stacks. -
A Flutter app that carries
android/still detects as Flutter, and a React Native or Capacitor app that commitsandroid/and declares i18next, ngx-translate or Transloco inpackage.jsondetects asweb.init --stack androidis the explicit choice for such a repository, anddoctorand the MCP tools honor it throughformat: android_xml. -
The MCP loop runs on an Android project.
authorize,syncandfill_statuscount the resources ofstrings.xmlinstead of failing withinternal_error.syncuploads the language files right after the base, as the CLI does, andsync_previewandsyncreport them inlanguage_filesand the ones left out inskipped_language_files.instructionsand thesetupandtranslateprompts carry the Android branch. -
When the answer to the base sync of an Android project is lost after the server applied it (no HTTP answer, a 5xx, a
409 request_in_progress),syncand the MCPsyncstill upload the language files if a fresh dry run shows the project holds the base, so the fill does not overwrite the hand translations. The failure is reported as before: the MCP answersrequest_unresolved, now withlanguage_files, and the CLI exits 1 with the base's error. -
doctorgrades asourceLayout: namespacesorscopesproject by the filessyncuploads andpullwrites.sourcereads every base file of the layout and fails on a file the sync cannot read or on acatalog_key_collision;targetslists the language files one directory down and warns on a hand edit beforepullstops on it; undernamespaces,languagestakes each directory ofoutput:that holds JSON as a language. It used to count onlysource:, see no targets and ask to deletetranslation.json. -
initon a gen_l10n project (Mode A) readsarb-dirandtemplate-arb-filefroml10n.yaml:output:is thearb-dir, and a template that exists issource:, whichpullnever writes. The first pullinitrecommends used to replace the template with the server's render, dropping its local keys and their metadata. The step that names the template, the Flutter block ofAGENTS.mdand the MCP promptssetupandtranslateask to import the existing.arbfiles in the dashboard and publish before that pull. gen_l10n refuses two files for one locale, sopullwrites each served locale into the.arbthat gen_l10n already reads as it, by its@@localeor else its name (es.arb,messages_es.arb). A locale without one takes the prefix of a template namedstrings_en.arb(strings_es.arb) and keeps its canonical name otherwise; a template without a locale suffix (messages.arb) also keeps the served base out. A config written before keeps its behavior. -
catalogs:ineasyi18n.yamllists several String Catalogs (Localizable.xcstrings,AppShortcuts.xcstrings,InfoPlist.xcstrings) that are one project;catalog:keeps naming a single file.syncand the MCP toolssync_previewandsyncupload the union of their entries with every key intact (no table prefix, so a key keeps the name it has with that file undercatalog:), which is why a second sync disables nothing.pulland the MCPpullgive each served key back to the file that holds it, and name a key no file holds (unplaced_keysin--json) instead of writing it. The same key in two files stopssyncandpullbefore any request or write withcatalog_key_collision, as do files with different base languages (catalog_base_language_mismatch);catalog:next tocatalogs:, an empty list and a file listed twice are refused by name.statusrecords and shows the list,doctorgrades each file and their union, and the MCP results reportcatalogsinstead of a singlecatalog. -
initon a project whoseeasyi18n.yamlalready exists still keeps the file without--force, and now reports each value the call names that the file does not hold as askippedstep (keeps baseUrl: A, not B (use --force to rewrite)), in the MCP result,--jsonand the text output. The project ref and--modeused to warn on stderr only;--base-url,--format,--outputand--catalogwere ignored without a word. -
init --stack webwritessourceLayout: namespacesfor i18next language directories inlocales/orpublic/locales/(sourceRootis the base-language directory,source:itstranslation.jsonor first namespace) andsourceLayout: scopesfor a Transloco root file with a scope directory beside it. Its steps name the namespace files or the scopes, it no longer creates an emptylocales/en.jsonnext to a directory of namespaces, and the### Webblock ofAGENTS.mdnames the files the layout syncs. Other trees still getlocale-files. -
sourceLayouttakes two more values,namespacesandscopes, for web projects that keep several JSON files per locale.namespacestakes every JSON directly insourceRoot(locales/en/common.json) as an i18next namespace;scopestakessource:as the Transloco root file and each<sourceRoot>/<scope>/<base>.jsonone directory down as a scope.syncand the MCP toolssync_previewandsyncupload them as one catalog: each key is stored under its namespace or scope (common.save), and the root file's keys keep their names.pullwrites every language back as<output>/<lang>/<namespace>.json, or<output>/<lang>.jsonand<output>/<scope>/<lang>.json, each in the key order and shape of its base file, and never writes a base file. A key that would land under another file's namespace or scope, such as a root keyadmin.titlebeside the scopeadmin, stops the sync before any request withcatalog_key_collision. A file the layout has no place for is refused withseveral_files_per_locale, which underlocale-filesandbase-treenow names the two new values.
0.13.0-rc.6 #
-
source:sync requires bothsourceRootandsourceLayout.locale-filesselects files named for the project's base language;base-treeselects every JSON under the declared root. Neither layout depends onoutput, the working directory or ancestor directory names. Configurations from development builds must add them; sync refuses an absent or invalid declaration withcatalog_scope_unknownbefore uploading.initwrites the detected input directory andlocale-files. Generated directories inside the input tree requiresourceExclude. -
When
sourceRootis absent, thecatalog_scope_unknownrefusal lists JSON files only in the source file's folder. It no longer scans the working tree, including unrelated catalogs andnode_modules, to build the diagnostic. -
pullandsyncstop instead of replacing a locale file that changed since the pull that wrote it.pullrecords a digest of each file it writes in.easyi18n/state.json(digests, besidefiles). The nextpullnames a file whose content no longer matches before it prunes or writes anything,--dry-runincluded, and exits 1 withedited_targets. Asyncof a project with one file per locale does the same before it uploads.--jsonlists the files underedited, besideerror; the MCP toolspull,sync_preview,authorize,fill_statusandsyncanswerisErrorwitherror.edited.--force, new on both commands, replaces the file. Reformatting is not a change: JSON and ARB are compared decoded with their keys sorted, other formats with their line ends folded; the@@last_modifiedstamp of an ARB render is not compared. A file that already says what the pull serves is kept, so a change made in the dashboard and published needs no flag.doctorwarns about such a file undertargets. A record written by an older CLI has no digests and stops nothing; an older CLI reads the new record unchanged.xcstringsis merged as before. The record is per checkout: a file that arrived through Git from a pull on another machine reads as changed too. -
doctorgrades a web project beyond its base file.transpilerfails when the ICU plugin of the detected library is missing frompackage.json, andwiringfails when no source file of the app provides it:provideTranslocoMessageformat()for Transloco,provideTranslateCompiler(TranslateMessageFormatCompiler)for ngx-translate,i18next.use(ICU)for i18next.sourcefails a base file whose shape is not the configuredformat(jsonis flat,nested_jsonnests), which the server would refuse at the next sync.targetswarns about each locale file underoutput:that nopullof this checkout wrote, read from.easyi18n/state.json; on a checkout with no such record it lists the files and claims nothing. With a key,languageswarns about each project language that has no locale file and each locale file whose language the project does not have; it reads/meta, which needs thereadscope. -
The MCP tools grade the output format before an agent spends.
pullenables the format of a project that has none, which takes thewritescope, so an Agent key withread, translate, publishused to translate and publish and then stop atpullwith the files unwritten.doctorreportsoutput_format:failwhen the project has no format and the key has neitherwritenoradmin, or when the project has other formats and not the oneformat:names; the two remedies are indetails(enable it under Project > Settings > Output, oreasyi18n formats add <id>with a key that haswrite).sync_preview, andpush_previewon amode: aproject, answernext: output_formatwith the same remedies in those two cases, and list what they read underoutput_format(format,state,enabled,remedy). A Flutter Mode B project is not graded: it never pulls.doctorin the CLI is unchanged. -
initsets up a web project that keeps one JSON file per locale.--stack autodetects apackage.jsonthat names@jsverse/transloco,@ngx-translate/coreori18next, and--stack webnames the stack. It writesformat: json(nested_jsonwhen the base file nests),output:as the directory of the locale files, and a new setting,source:, the base-language filesyncuploads. One step names the ICU transpiler of the library and prints its wiring;initdoes not editpackage.json.doctorchecks that the filesource:names exists and parses. -
synccompletes on a web project. It uploads the filesource:names, waits for the translation, publishes, and writes one file per target language intooutput:. The write-back records.easyi18n/state.jsonas apulldoes. In--json,delivery.languagesisnullfor such a project: no single catalog is read back. -
pulland the write-back ofsyncnever write the filesource:names. A plainpullused to replace it with the server's render of the base language;pull --lang <target>did not. The served name is matched to that file without case, so apt-br.jsonis not replaced bypt-BR.jsonon a case-insensitive disk. -
sync, and the MCP toolssync_preview,authorize,fill_statusandsync, refuse a web project whose base language is kept in several files (i18next namespaces, Transloco scopes) before any upload, with codeseveral_files_per_localeand the files insourceandfiles. One upload is the whole catalog of the project, so the keys of the other files would be disabled. -
syncstill refuses, with codeformat_not_writableand before any request, acatalog:on a format that renders one file per locale: that write-back would fail after the fill was charged. The message now points atsource:. -
The
setupandtranslateprompts, the server instructions and the Claude Code plugin skills cover the web stack: detection bypackage.json, literals moved into the base file as ICU,sync_previewas the preview, and apullthat writes the other locales. -
The refusal of
initon a tree it does not recognize listswebamong the supported stacks and names the three libraries it looks for. In the roadmap list of that message and of thesetupprompt, "web JS/TS" becomes "web t() extraction": the catalogs are supported, and reading the calls out of the source is still to come. -
The MCP
inittool answers a tree it does not recognize with codeunsupported_stack, and the error object carries two lists:supported, the stacksinitcan set up, androadmap, the ones announced. It used to answercli_error, and both lists existed only inside the sentence. The message is unchanged.init --json --stack autoreports the same code on such a tree; its error record carries no lists. -
initmarks the development values it writes intomain.dart. TherefreshIntervalof 10 seconds, and thebaseUrlwheneasyi18n.yamlnames a backend other than production, each get a// Development value:comment on the line above that says what to do before a release. The snippetinitprints when it cannot patchmain.dart, andscope_snippetunder--json, carry the same comments. Amain.dartan earlierinitalready wired is left as it is. -
syncno longer says a language is "translated from scratch and part of the estimate" when the run translates nothing for it. A language the project already holds in full and your catalog does not carry yet was priced at zero and still announced that way on every run. The preview now prints those languages on their own line: "Not in your catalog: de — this run has nothing to translate for these and they are not part of the estimate below." Languages with pairs to translate keep the previous line. The split readsplannedPairs, a new field on theLANG_NOT_IN_FILErows of the/v1/syncdry run;sync --jsonpasses it through underpreview.diagnostics. Against a server without the field the output is unchanged. -
A usage error under
--jsonis a JSON error record on stdout with codeusage_error, and still exits 64. An unknown option, a value the parser refuses,--versioncombined with a command andmcp configwithout--clientused to print the message and the usage text on stderr and leave stdout empty. Without--jsonthe output is unchanged.Easyi18nCommandRunner.runreturns 64 for these under--jsonwhere it used to throwUsageException. -
A usage error printed as text no longer shows an API key pasted where the parser refuses it.
easyi18n sync --on-conflict <key>andeasyi18n <key>quoted the key on stderr; they now print[REDACTED]in its place, as every other line of the CLI and the--jsonrecord already did. Terminal control characters in the refused argument are dropped the same way. Any other usage error prints the same text as before. -
The MCP
fill_statustext fornext: ingest_againsays what the nextpushorsyncdoes to the operation's attempts. When the local log lets it continue the last attempt (a request closed aslost, or a batch the server refused), the text says it continues that attempt and opens no new one. Otherwise it says a new attempt opens and how many of the three the operation has left. It used to say "need a new ingest ... at most twice" in both cases, also with one attempt left.nextand the fields are unchanged. -
initno longer writesoutput: lib/l10ninto a config that has acatalog:, which is the configinit --stack xcodewrites. The line named a Flutter directory an Xcode project does not have, under a comment aboutl10n.yaml, andpullandsyncdo not readoutputwhile a catalog is configured. An--outputother thanlib/l10nis still written there, under a comment that says it is not used whilecatalog:is set. A config without a catalog is written as before, and aneasyi18n.yamlthat already exists is left as it is. -
The MCP tools stop a
pushorsyncthat would take the project past the key limit of its plan before anyone approves it. When the dry run reportswouldExceedKeyCap,push_preview,sync_previewandfill_statusanswernext: plan_limit,authorizerefuses with codeplan_limitand creates no operation, andpushandsyncrefuse with the same code before the real request, so no attempt is spent. The text says a plan upgrade or fewer keys clears it, and that authorizing or retrying does not. The preview used to answernext: authorize, and the approvedpushgot a 402 on every attempt. A 402plan_limitthat still arrives on the real request keeps the server's message. -
A 403
authorization_requiredon the real request of the MCPpushorsync, which the server sends when a pair became payable after the dry run, answers with the remedy of the local gate:authorize {action: translate}, the server's estimate underestimated_creditsand theattempt. It used to forward the server's message, which namesPOST /v1/operations. -
mcp config --client codexaddsrequired = trueandomit_tools_from = ["deferred"]to the snippet. Codex waits for the server and exposes its tools at startup, so a session cannot go on without them.
0.13.0-rc.5 #
-
MCP
pushandsynckeep a resent request unresolved when the original is still processing (409 request_in_progress), sofill_statuscan recover its eventual result. -
MCP
pushandsync: a requestfill_statuscloses aslost(the server holds no record of it) goes again under the sameattempt_idand with the samerequest_id, from that batch on. It used to start a new attempt from batch 0, which spent one of the operation's three attempts and sent the accepted batches a second time. -
mcp configpins the npm snippet to the CLI that prints it:npx -y @easyi18n.com/cli@<version> mcp. Unpinned, a client installed npm'slatest, which was rc.1 while rc.4 printed the snippet. The Codex snippet setsstartup_timeout_sec = 60: a firstnpxdownload took 19.9 s and Codex gives a server 10 s, so the server showedfailed. -
initnames the stack roadmap (web JS/TS, Android, gettext) when it finds no supported stack or is given an unknown one. Thesetupprompt already did, and a client that does not load MCP prompts, such as Codex, only saw the refusal. -
pullon a mode B Flutter project whosepubspec.yamlbundlesassets/easyi18n/bakes the offline floor: it reads the live delivery manifest and writes each locale's bundle toassets/easyi18n/<locale>.json, after checking it against its content address. Before this the folderinitcreates kept only its.gitkeep, and the firstflutter run -d chromeof a new app loggedfailed to fetch "assets/assets/easyi18n/en.json"with a 404. The.arbfiles are still written.--langbakes one locale;--versionbakes none, because the manifest only serves the live version. -
doctorfails when the manifest serves a locale the offline floor lacks, and warns when the floor is empty before the first publish. It used to pass as soon as the folder existed. Itemized assets must register each locale; files present on disk but absent from the asset list fail the check. -
pullrejects manifest locales that could form a path outside the floor. -
sync --jsonthat fails after its run settles (the publish, the pull, or a--require-completerefusal) puts the sync report in the error record, besideerror:preview,synced,attempts,still_incompleteandstopped_short, anddeliveryonce the publish answered. A pull that fails after the publish reports the version withpulled_version: nullandlanguages: null, because the catalog was never read back. The record used to be{"error": ...}alone while the catalog had already been applied. -
sync --jsonthat fails inside its run, after the server answered a POST (contended entries left after the retries, a failed job poll, a failed re-POST), keeps those answers in the error record:attemptshas one entry per answered POST,syncedis the last one, andstill_incompleteandstopped_shortarenullbecause the run never settled. A failure on the first real POST is stillerroralone. -
push --jsonthat fails on a later batch, or stops at--max-creditsafter charging one, keeps the accepted batches in the error record underpushed(their job tokens and credits), withlockfile_written: false. -
A disk failure under
--jsonis an error record with codefile_systeminstead of an empty stdout and an unhandled exception.synckeeps the published version underdeliverywhen the write-back fails,pushkeepspushedwhen the lockfile write fails, andpullkeepsfiles_writtenandprunedwhen a later file fails. Without--jsonthe exception is unchanged. -
pull --json --require-completethat refuses an incomplete version puts the pull report besideerror:files_writtenand thecoveragethe gate refused on. The files were already written; the record used to say onlyerror.
0.13.0-rc.4 #
- The npm package
@easyi18n.com/clino longer fails its install when it cannot get the binary (a platform with no binary, such as linux-arm64, a download error, a checksum mismatch).npx -y @easyi18n.com/cli mcpused to exit 1 with an empty stderr, because npx stops at a failed postinstall and prints none of its output. Now the install leaves no binary, the first run installs again, and a failure is printed on stderr aseasyi18n: <reason>with exit 1.
0.13.0-rc.3 #
initon a Flutter project (mode B) leaves an app that can show a translation. TheEasyi18nScopeit writes names thebaseUrlofeasyi18n.yamlwhen that is not production (the SDK default), and polls the manifest every 10 s, so a publish reaches the running app. It addsflutter_localizationsto the pubspec and, on the singleMaterialApp(orMaterialApp.router(ofmain.dart, insertslocalizationsDelegates: GlobalMaterialLocalizations.delegatesandsupportedLocales: Easyi18nScope.localesOf(context)(SDK 0.2.0; the pubspec dependency is now^0.2.0), dropping aconstin front. AMaterialAppbuilt without aBuildContext, more than one, or one reached through whatinitdoes not read (a${interpolation, a multi-line string, a comment naming the site) is reportedskippedwith the full snippet, like the scope; an app that already names either argument is left alone. Before this the app resolveden_USwhatever the device said and read production while the CLI published to the emulator, and the acceptance run of #1422 had to wire all of it by hand.doctorfails when the mountedEasyi18nScopehas nobaseUrlwhileeasyi18n.yamlis not production, and when the app'sMaterialAppnames neitherlocalizationsDelegatesnorsupportedLocales. A tree without aMaterialAppis reported and not failed.- The
translateprompt's step 6 says that the app follows the device language, which is where a target language is chosen. pull --lang <base> --require-completesays that--langnames the base language. It used to say the version reports no target language, which is false for a version that carries them. The exit code is unchanged.doctoragainst a backend that reports no per-language coverage says to upgrade the backend, aspull --require-completedoes. It used to say to publish again, which against that backend changes nothing.pull --lang ""(and the MCPpulltool withlang: "") is a full pull, as the server already rendered it: it prunes renamed files, records the full file set, and--require-completegrades every language. It used to answer "--lang is the base language" and leave stale files behind. A blank--lang " "is the same full pull, and a padded--lang " es "gateses, because the server trims the value before reading it.- The MCP
pushandsyncunder an operation still waiting for its approval tell the agent to wait withauthorize {operation_id}. They used to say to report what it charged and to authorize again only if the human agreed, a question whose answer returns the same pending operation. - The MCP
publishandrollbackonly tell the agent to wait for apending_approvaloperation. A denied or unavailable operation asks the human whether to authorize again instead of assuming it is pending. - The MCP
pushandsyncrefuse an operation whose action is nottranslatewithaction_mismatch, in any state and before any request, and the text names the action it carries. Apublishorrollbackoperation used to be reported asscope_changed, "the strings changed since the human approved this operation". - The MCP
publishbuilds itsfill_incompletetext from the counts the server sent: cells refused by the ICU or markup gates and pairs that used up their fill attempts are counted and handed to the human, pending cells send the agent tofill_statusand itsnext, and underapproved_onlythe text says a cell also needs its approval. Iffill_statussays publish and the refusal comes back, the agent reports the counts instead of publishing again. It used to say "Poll fill_status until it is complete" for every refusal, including anapproved_onlyone whose fill was already complete. - The
setupprompt readsinit's "No supported stack found" as it is: the agent checks whether it is at the root of the app, retries withproject_dironly on a directory that meets the detection of step 1, and otherwise stops and says it found no supported stack. It used to say the stack was supported and the agent was above the app, which is false on a Node repository. Step 1 names what the Xcode adapter detects: an.xcodeprojor.xcworkspaceplus any.xcstringscatalog other thanInfoPlist.xcstrings, not onlyLocalizable.xcstrings. - The MCP
fill_statusanswersnext: reauthorizeinstead ofingest_againwhen the operation already registered its three attempts and the local log cannot continue the last one: the server refuses a fourth withattempts_exhausted. The text says so and warns thatauthorizemay return the same operation until the server expires it. A poll or a publish is unchanged, and so is an ingest that continues the last attempt. - A 403
authorization_required(an Agent key with no approved operation) no longer ends with "The token is valid but lacks the required scope for this project": the token has the scope. The MCPpushandsyncthat meet it on the real request, because a pair became payable after the dry run, report the server's estimate asestimated_credits, in credits. - The MCP
fill_statussummary tells the agent to report every request it closed asexpired(the server's 24 h response window, or a local intent older than that): its answer is gone and it is not re-sent. It used to show only inreconciled[].state, under "complete. Authorize and publish." or "Poll again". push --json --publishthat fails after writing the lockfile (the fill wait,--require-complete, or the publish call) puts the push report in the error record, besideerror:preview,pushedwith itstracking_tokens,published: null,lockfile_written: trueanddry_run, the fields of a successful record. The record used to be{"error": ...}alone while the text run had already printedPushed.. A failure before the lockfile moves is stillerroralone.
0.13.0-rc.2 #
initwrites an easyi18n block intoAGENTS.mdfor coding agents without an MCP client: the translate loop, the credit and key rules, and the stack's own rules (Fluttertr()and ICU, or the Xcode catalog). It creates the file, appends to one without the block, or rewrites only what is between<!-- easyi18n:start -->and<!-- easyi18n:end -->, reportingcreated,patched,updatedorok.--no-agents(MCP:write_agents: false) skips it. It never touchesCLAUDE.mdor.cursorrules, and suggests@AGENTS.mdwhen aCLAUDE.mddoes not mention it.doctoradds theagents_mdcheck, which warns when the block is missing, stale or edited by hand and never fails.- The MCP server drives an Xcode String Catalog end to end.
sync_previewprices the upload of the configuredcatalog:without registering anything: keys it creates and updates, conflicts with the project, diagnostics and estimated credits.syncuploads it, applies it and queues the translation; likepush, it needs theoperation_idof an approvedauthorize {action: translate}when it costs credits, writes the intent of its request to.easyi18n/operations/before sending it, and never publishes or waits. Its record names the catalog andkey_policy: local_owns, so the nextpullkeeps the catalog's own key set instead of adding back keys deleted from it. An entry that lost a create race is not re-sent by the tool: it answersnext: sync, and the agent syncs again under the same operation. authorize {action: translate}andfill_statuswork on a file-first project, where 0.12.0 answeredwrong_family.authorizetakeson_conflict(serverorfile), which is part of what the human approves, and on an approved operation answersnext: syncfor a catalog.langsis refused there withlangs_unsupported: a sync fills every language the catalog carries.fill_statuson a catalog iscompleteonly when nothing is in flight and the dry run estimates 0 credits.authorize {operation_id}reads the operation withoutaction, as its description always said; 0.12.0 rejected that call withinvalid_arguments. A call with neither is refused asaction_required.- The
wrong_familymessage no longer claims the tool is for code-first projects; it names the tool to use instead, as before. - The
setupprompt and theagent_keywarning ofdoctorsent the human to a "For an AI agent" option the dashboard does not have. They now name the control that creates an Agent key: API keys > New API key, Used by: AI agent. easyi18n mcp config --client <client>prints the snippet that registers the MCP server inclaude-code,claude-desktop,cursor,vscode,codex,gemini,windsurf,zedor any other client (generic), and on stderr where it goes.--runner npx(default) starts the server with the npm package@easyi18n.com/cli;--runner dartwithdart pub global run. The Cursor, VS Code and Gemini snippets go in a file inside the repo, so they read the key through the client's interpolation instead of holding it; the command never readsEASYI18N_TOKEN.--jsonemitsclient,runner,format,targetandsnippet.
0.12.0 #
-
easyi18n mcpruns an MCP server on stdio for an AI agent to drive. It takes the key fromEASYI18N_TOKENin the server's env and the project from theproject_dirargument, thenEASYI18N_PROJECT_DIR, then the working directory. It refuses to send the key to abaseUrlother than the easyi18n API over HTTPS or a loopback host, unlessEASYI18N_BASE_URLnames that exact origin. Tools:doctor,status,init,extract,pull,apply,push_preview,push,fill_status,authorize,publish,rollbackandadd_language; prompts:setupandtranslate. Apushthat costs credits needs theoperation_idof an approvedauthorize {action: translate}, whosemax_creditsis clamped toEASYI18N_MCP_MAX_CREDITS(default 50,0disables paid ingests); a push that costs nothing needs no approval.fill_statusreports what is still pending and settles any request that left without an answer. Every tool result is capped at 32 KiB.extract,apply,push_preview,pushandfill_statusreadtr()calls, so they serve Flutter projects; the tools for an Xcode catalog are not in this release. -
easyi18n --versionprintseasyi18n <version>, or{"version": ...}under--json. -
A global
--jsonflag makesinit,doctor,status,extract,pull,apply,push,sync,rollback,languages addandformats addprint one JSON object on stdout; warnings stay on stderr and the text output is unchanged. A failure prints{"error": {"message", "code", "statusCode", "retryable"}}, whereretryableis true for transport failures and for the HTTP statuses the CLI already retried. Under--jsonnothing prompts:pushandsyncrefuse to spend credits without--yesand fail withconfirmation_required. -
pushandsyncno longer read a confirmation from piped stdin. Without a terminal they decline and say to pass--yes, as before when the answer was noty. -
init --stack flutter|xcode|auto(defaultflutter).xcodefinds the project's String Catalog (Localizable.xcstringsfirst,InfoPlist.xcstringsnever), writescatalog:,format: xcstringsandmode: a, and scaffolds nothing else;--catalog <path>names a different one.autodetects the stack and refuses a tree it does not recognize.doctorreports the detectedstackandfamilyand checks the catalog, format, mode and Xcode setup of a file-first project. -
The MCP tools
publishandrollbackfreeze and restore a version behind a human approval:authorize {action: publish|rollback}returns theapproval_url, and the tool refuses without the approvedoperation_id. A rollback names its target aspreviousby default; the server resolves that alias when it mints the operation, so what the human approves is the version id that goes live. -
push --json --publishworks: the record gains apublishedblock withversion_id,key_count,unchangedandrefused(the ICU and markup rows plus the server's totals, which exceed the rows once the 50-row cap bites). Until now the combination was refused withjson_unsupported, so a CI job that published had no way to read which version it minted. -
easyi18n languages add <code> [--fill-mode ai|manual]and the MCP tooladd_languageadd a target language throughPOST /v1/projects/{id}/languages, with a key that has thewritescope. Re-adding a removed language revives it. The command prints the code as the server stored it (PT_BRbecomespt-br);--jsoncarriescode,fill_mode,project_dir,base_urlandnext. Against a backend without the route the server answers 404 and the command fails with it. -
The MCP
doctortool asks the server whether the key inEASYI18N_TOKENis an Agent key (GET /v1/projects/{id}/credential) and warns when it is not: that key spends and publishes without a human approval. Against a backend without the route the check readsunverified.easyi18n doctordoes not ask, because a CI key is the other valid kind. -
A failed command on a 5xx now prints the server's correlation id (from the error body, else the
x-correlation-idheader) to quote in a support ticket, and a 500 gets its own hint instead of the bareinternal error. -
syncprints one line per diagnostic code the server cut from its listing, with the number of rows left out and the languages they came from;--jsoncarries them asdiagnostics_omitted. The backend now lists 10 rows per (code, language). -
Breaking file-workflow requirements:
syncwith publication and Mode Apush --publishnow stop before preview if metadata is unreadable, malformed or lacks output-formats API version 1, even for an already configured project. Mode Apush --publishnow requiresreadin addition totranslate,publish; adopting a format also requireswrite. -
Remove the exported
SyncRunner.fetchMetaandcheckOutputFormathelpers; file workflow preflight now belongs toOutputFormatAdoption. -
Adopt formats conditionally in file-delivery flows after budget/consent, require backend capability before preview, and publish with
requiredOutputFormat. Preserve confirmed configuration changes in later errors and sync JSON. Mode B push and sync without publication retain their existing permissions. Empty Mode A pushes are covered. -
Recover formatless pulls after a real format error, retrying the same version/lang once. Healthy pulls add no lookup; watch adopts at most once, read-only keys receive write-scope advice, and dry-run never adopts.
-
Add
easyi18n formats add <id>with the write scope, project ID/alias resolution and text/JSON confirmation of the persisted format list. Repeating the command reports whether configuration changed, including materialization of legacy formats. It does not publish translations. -
Share typed POST transport with publish/rollback while preserving their success statuses, parsers and replay policy. Invalid add responses provide add-specific recovery advice.
-
One noun for the refusal counts (#1175).
push,syncandrollbackreport the same two counters (icuRejected/markupRejected) and printed three different words for them —translation(s),value(s)andcell(s). Since #1000 a refused row can name the base language, where the refused value is the stored source and not a translation, so two of the three were wrong for part of what they counted. All three now printcell(s), the one noun true of both natures. The number itself has not changed. -
pull --require-complete --dry-rungates without writing (#1178). The gate runs before the writes and does not read--dry-run, so the pair is the combination a CI job wants: it answers "is the published version complete?" and leaves the working tree untouched. Behaviour is unchanged — this pins it, because a dry run used as a cheap gate that exits 0 over the state the real run refuses is the defectsyncsettled in #955. The--require-completeand--dry-runrows of the README say so. -
A parse finding now names the language column it was lost from (#726).
/v1/syncraises the parsers' findings per language pass and forwards the pass on each row; the CLI grouped them by code and message shape, and the messages ofPLURAL_SHAPE_MISMATCHandDEVICE_VARIATION_FALLBACKname nothing (the key is infield, which the shape blanks out), so two languages losing the same string printed as one line naming neither. The line now carries— in: en, fr, capped and counted likealso on:, and the language joins the identity of an already-printed row so a row only the real run carries is no longer discarded against the preview's. A row with no language — the base parse's and theLANG_*family — prints exactly the line it always printed. -
pull --require-complete— the completeness gate a Mode A CI job can fail on (#1052). A Mode A project's translations live on the server and its publish skips the cells it has no translation for, so an incomplete locale rendered as a shorter file that no command could turn red:sync --require-completeneeds acatalog:a gen_l10n project does not have,pushhas notr()units to gate,pullandstatusnever looked at per-locale coverage, anddoctorskipped its grading on Mode A and printedAll checks passed.over half-translated locales. The export now reports per-language coverage off the published snapshot, andpull --require-completefails, naming each incomplete language and its missing count, when any target language is short.doctorgrades the same thing on a Mode A project instead of skipping it (#1176): a short language is a FAIL, and a version it cannot judge — or a missing credential — reports "could not verify", which keeps the run from printingAll checks passed.Back on the gate:pull --require-completerefuses a backend that does not report coverage ("cannot verify"), never passes it — and so refuses a version the count cannot judge: one published withincompleteMode: source(the base text is baked into every untranslated cell, so it always reads complete), one published before the server started stamping how it treated those cells, and one with no target language at all. Only a cell that renders as non-empty text counts as translated. The flag refuses outright, before any request, on amode:other thana(a config with nomode:line at all reads asb— the refusal names addingmode: aas the fix), on--langnaming the base language, and with--watch(the gate is one-shot) — nine refusals in all, so a CI step gets a verdict or an error, never a green it did not earn. The ninth is a basis the version states and this client does not recognize, which is separate from a version that states none.doctorreads the same set the gate does — one symbol, not a copied predicate (#1248): onlyskipis judgeable, sosource, a basis this client cannot read, and an unstamped version are all reported as unverified rather than graded, and each is reported with its OWN message and its own remedy, the same three the gate refuses on. A version whose basis this client does not recognize is told to upgrade the CLI, not to republish — republishing stamps the same basis again. A version with no target language at all is reported as nothing to grade rather than as a check that could not run (#1176). That last state is the one where the two commands answer the same version differently, on purpose: a base-only project is healthy for a health check and has nothing to gate on for a gate, sodoctorpasses it whilepull --require-completerefuses it.doctornames the sibling's refusal in that line, so the disagreement is not something a red CI job has to be reverse-engineered from.
doctor can now exit 1 where it exited 0 — read this before upgrading. A
Mode A project with a short target language used to print All checks passed.; it is now a FAIL naming each language and its missing count. Every
"could not verify" arm — no credential, a 403, a version the basis cannot
judge, a backend that reports no coverage, an unreachable API — still exits
0, so a job only turns red on a state that is actually incomplete. On a Mode
A project doctor also makes its first authenticated request: it sends
EASYI18N_TOKEN to baseUrl to read the published coverage, and warns
first when that baseUrl is not the production origin, like the other
commands that send the token.
A green CI job can start writing something different — read this before
upgrading. sync used to tell the server that its catalog was current as of
the moment it ran pull. It now sends the instant the content it pulled was
published, which is earlier — often by a day, and by weeks under pull --version. That is the point: the pull renders the last published
snapshot, never the live keys, so a correction made in the dashboard since
that publish was never in the file. Claiming the pull moment told the server
the file already carried it, and the server silently reverted the correction
with no conflict row and no trace (#898).
With the correct claim, those keys now come back as base-language conflict
rows. Under the default onConflict: server the project's source is kept and
your file's base text is no longer imported for them; --on-conflict file
keeps today's outcome and still reports the row. A plain pull refuses
nothing new and adds no exit path: a conflict row is a warning, never a
failure (the two new refusals in this version are both opt-in flags:
sync --dry-run --require-complete and pull --require-complete, both in
this section). What
it can change is what the run has left to do — --require-complete still
decides by what the server reports as unfilled — and it can write less than it
did and print warning lines it did not. This affects a plain
pull too, not only --version, and it closes the rollback → pull → sync
sequence, which reproduced the same silent revert with no flag at all. A caret
constraint over 0.x pins the minor, so this does not install itself into an
existing job.
pullrecords what its files are not behind, andsyncclaims that. The server now reportssnapshotAton the pull response, and the CLI stores it in.easyi18n/state.jsonnext topulledAt. The two are separate on purpose:snapshotAtis the claim,pulledAtis whateasyi18n statusdisplays, and apull --versionfrom two weeks ago must not makestatussay "pulled 13 days ago" a second after it ran. (#898)- Nothing new can fail because of it. A server that does not report the
field, a value that names no timezone, and a value of the wrong type all
fall back to dating the pull by the local clock — the previous behaviour —
instead of failing the pull. State written by an older CLI keeps arming the
guard through its
pulledAt, so upgrading never drops the claim. (#898) - Known residual — a version restored before the server side of this shipped. Its stored instant is the restore's, not its content's, so a pull of it still over-claims until the project publishes or restores again. That is today's behaviour, unchanged, not a new failure.
- Known residual.
sync's own final pull deliberately records no state, so after asyncthat publishes, the stored claim still names the previous version. The nextsynccan therefore report one conflict row too many for a key the dashboard moved and that publish already carried. The direction is safe — a row, never a silent revert — and an explicitpullresets it. sync --dry-runnow reports exhausted and held pairs, and--require-completegates it. The preview always carried theexhaustedrows and thependingSkippedcount the real run refuses on, but the dry run returned before reading them: it said nothing wherepush --dry-runwarns, andsync --dry-run --require-completeexited 0 in silence. It now warns naming each exhausted pair and counting the held ones and, under--require-complete, fails (exit ≠ 0): a CI job using the dry run as a cheap gate can go red on upgrade, on exactly the state the real run would have refused. What only a fill decides (a job stopping short) is still the real run's call. (#955)
0.11.0 #
Two new refusals — read before upgrading a CI job. push --publish --require-complete now fails (exit ≠ 0, nothing published) when the AI retry
budget is spent, exactly as sync --require-complete already did, or when the
scan finds no extractable units. A previously-green CI job may go red on
upgrade: #752 means untranslated pairs would have shipped as source text;
#952 means push scanned no units and could not verify the remote catalog at
all. Everything else below is new output printed permanently, a new option
whose default preserves today's behaviour, or a crash that becomes a success.
A caret constraint over 0.x pins the minor, so none of this installs itself
into an existing job.
- A malformed baked email bundle now blocks deploy with an attributed error
instead of a stack trace. Invalid UTF-8, invalid JSON, a non-object root,
or a non-object
tokenIndexnames the exact bundle to replace or regenerate and exits 2. Filesystem and extractor failures keep their original types, whiletokenIndexvalues remain intentionally unvalidated because this gate consumes only its keys. (#1018) - A 200 whose body is JSON of the wrong shape now fails with a sentence
instead of a stack trace. A response that parsed as JSON but carried an
array, a string, or a field of the wrong type left the CLI with an uncaught
TypeErrorand exit 255 — from a proxy that answers with its own envelope, abaseUrlaimed at the wrong service, or a schema regression. Every success body is now read field by field: the failure names the endpoint and the field, and exits 1. This covers every HTTP response reader in the CLI, not just the API client —syncno longer dies on a diagnostic row whosealsoSpelledis not a list, anddoctorno longer dies on a delivery manifest whosetokenAlgoVersionsis not one (it reports the manifest as unreadable instead). No response that succeeds today starts failing — the readers accept exactly what the casts they replace accepted (a field that is absent or null still falls back to its default), and the lists the CLI never iterates stay tolerant of a stray non-string element, as they are today. Two observable changes that are not refusals: the exit code of an already-crashing response moves from 255 to 1, and apendinglist holding no usable language no longer counts its unit as needing a fill. A realpushorsyncthat fails this way adds one line: the server may already have reserved credits and queued a fill, so the line names that re-running is safe and does not pay twice. A--dry-run(and the cost preview everysyncopens with) does not print it — that request is answered before the hold and before the enqueue, so there is nothing to re-run into. (#972) - A non-string
projectin the localeasyi18n.lockis now treated as absent. The field is inert when the lockfile is read;extractandpushconsume its units, while a push writes the resolved project id. Any value that is not a string — a number, a boolean, an array, an object — now falls back to the config seed without losing units. This is a crash-to-success tolerance fix, not another refusal. (#989) pushandsynccan no longer disagree about an exhausted pair. The server reports a pair whose AI retry budget is spent in both commands' responses, deliberately outsidepending(the fill will never retry it on its own), andpushread onlypending— so it printed "Everything is already translated.", exited 0, and published the pair as source text, under the very flag whose job is to refuse that.syncrefused correctly. Both commands now share one decision: under--require-completethe run fails listing everykey [lang]before anything is published; without the flag every push surface — the real push, the zero-estimate path, and--dry-run— names the pairs on stderr instead of counting them as translated, and the completion claim is never printed over them. Retry the pairs from the dashboard; a source edit or a model change also re-arms the fill. (#752)- An empty
push --publish --require-completenow fails before any request. With no extracted units,pushhas no pending/exhausted snapshot and cannot prove that the remote catalog is complete; it previously published that state and returned 0. Code-first projects are told to check--source-dir. Mode A recommendssync --require-completeonly for a non-empty, supported single-filecatalog:; canonical gen_l10n/ARB configs instead name the dashboard becausesynccannot evaluate them. Removing the flag preserves deliberate publication of the current remote state. (#952) pullnow reports every replacement of your catalog's local source text, with the text it discarded. A pull run between an Xcode edit of the base language and the nextsyncused to revert that edit silently — in an identifier-keyed catalog (InfoPlist.xcstrings, #612) the English is prose the developer wrote, so the loss was authorship, not a derived render. The pull still applies the served value (exempting the base language is refuted in the issue: it breaks converted printf values, base plural forms, and the empty shells Xcode creates), but each pair is named on stderr asConflict: <key> [<lang>]with one line per discarded form, so the text survives in the log and in the pull action's PR diff. Remedy: re-apply the edit in the dashboard, or in the file followed byeasyi18n sync.pull --dry-runprints the same rows in the conditional, before anything is written.sync's own write-back stays quiet — the server already reports that pair on the conflicts channel. (#646)syncnow tells the server when this catalog was pulled, and--on-conflictdecides who wins. With a dated pull the server can see that the project's text changed after your file was written, and reports the row instead of letting the upload bury it. The new option chooses the outcome:server(the default, and what every earlier version did) keeps the project's text and names the row;fileimports the catalog's over it — including over a source correction made in the dashboard, which is the one case worth reading twice before switching. The claim is only sent when the recorded pull describes this file (catalogandformatboth match the config), so a config switch cannot arm the guard with a timestamp that dates another file, and a repo that only ever runssync— the CI flow — sends nothing and is served exactly as before. A row on the base language is about the key's source, and every line that describes one now says so rather than calling it a translation; under--no-publishthose rows are counted apart instead of folded into "N kept value(s)". ApulledAtin.easyi18n/state.jsonwritten without a zone is dropped rather than guessed — reading it as process-local time moves the instant west of UTC and would silently revert an in-app source edit made inside that window. Known residual:pull --version <old>dates the state with now (#898). (#671)- A malformed served entry no longer crashes the xcstrings merge. If the
server delivered a key whose value was a bare string instead of an object,
pullandsync's write-back died on aTypeErrormid-merge (present since 0.8.1) and the catalog was left unwritten. Such an entry is now skipped and the local entry is kept verbatim, under both key policies — there are no translations inside a scalar to apply, and a payload the CLI cannot read is never a reason to overwrite the developer's file. (#966) syncstates which languages it is about to translate, before the credit estimate. The estimate has always covered the project's configured, non-manual languages and nothing else; it just never said which those were, so there was no moment at which the number could be checked against the intent.Target languages (N): …now precedes it (#592).- The two ways your catalog and your project can disagree are named, with
the remedy. A language the project configures that your catalog has no
entry for is translated from scratch and paid for — and when your catalog
spells the same language differently (project
cs-cz, filecs), both spellings are named and neither is changed for you: which one is meant is yours to decide. A locale your catalog carries that the project does not configure is reported too; it was always ignored, it just said so nowhere. One grouped line per kind, never one per locale — and never the same locale twice across the two moments. - After the pull,
syncreads the catalog it just wrote and warns by name for any configured language missing from it, and for any locale in it that the project configures nowhere. This is the check that could not be fooled: a language with nothing to deliver produces no entry at all, and the pull merges into your file rather than replacing it, so a locale you already had survives untouched and used to read as one we produced.manual-fill languages are excluded — nothing was going to translate them, so naming them would contradict the line above that just excused them. A catalog whose every entry isshouldTranslate: falseis excluded too: no fill will ever put a locale in one, so "re-run the sync" would be advice that can never work. Warnings only;--require-completeis still the flag that makes CI red. - A backend that does not say what the project is configured for gets none of this rather than a guess. An empty target list is not that case — it is a project whose only language is its base, and it still hears about the locales its catalog carries that nobody configured.
- A grouped parse-diagnostic line no longer speaks for a row it does not
describe. One code can print several lines — one per message shape — and
past a cap of five shapes the extra rows folded into the LAST line printed,
taking that line's wording with them. Since the server now emits two
different consequences under
DUPLICATE_PLURAL_FORM(#878), a sixth shape could tell an operator that a value was truncated when it was in fact stored intact. Rows past the cap now get their own line, which quotes no row's message and names the keys it covers up to the same cap every other line uses, counting the rest. That line says how many rows it stands for and nothing else about them, and the count a line prints is now the rows on that line — it used to be labelled "for this code in total" while counting one message shape. Output-only; no run changes result.
0.10.0 #
Behaviour changes — read before upgrading a CI job. Five of the fixes below
change what a run that passes today does. sync now keeps a newer server-side
translation instead of overwriting it with the file's (--on-conflict file
restores the old default, #550), and it fails where it used to exit 0: a key
lost to a concurrent sync (#564), a fill that stopped short (#602), and pairs
already held by another fill under --require-complete (#591). An output
format the project has not enabled is now caught before the run spends anything
rather than after (#530). Hence the minor bump — a ^0.9.0 constraint will not
pick this up on its own.
-
A busy backend no longer kills the run on the first try. Firestore's write-bandwidth throttle is quota-wide — it is a property of the database, shared by every client of it, not of your catalog — and a large first-time sync is exactly the run that meets it. It used to arrive as an opaque
500and end the job, with the project half-applied; the server now reports it per entry, so the keys that landed keep their work andsyncretries just those entries with exponential backoff and jitter instead of re-posting instantly. A run that meets the throttle leaves the translation for that retry rather than queuing one it might not be able to take back. GET requests (the fill poll, the pull) replay a transient failure as well — the poll runs after the credits were spent, so dying there used to lose a paid job, and the cost preview retries too — losing a whole run to a busy moment before a single write had been attempted was the cheapest failure to avoid. What is never repeated automatically is a request that may have changed something: with no answer from the server, "it failed" and "it is still being applied" are indistinguishable, and a run that failed after reserving credits can still be holding them — an automatic retry would then report a balance problem you do not have. In that case the run says the service was busy and re-running picks up exactly what is left. (#591) -
A run whose pairs are held by another fill no longer passes for complete. When every pair the catalog needs is already marked as being filled, the server has nothing to queue and accepts instantly with no tracking token — so the wait loop never started,
--require-completepassed, and the publish minted a version without those cells. The response now reports how many pairs it skipped for that reason;syncwarns on every run and refuses to publish under--require-complete. (#591) -
A translation the markup gate refused is now named in the output. The publish response carries two rejection lists and the CLI read one: a markdown or html translation that lost the source's structure (a dropped
**span, a mangled<a>) was refused at publish and reported inmarkupRejected, which nothing printed.pushshowed a successful publish andsynca clean run, while the string you wrote never reached users — underpushthe base language shipped in its place, undersyncthe locale simply had no value for that key. Both commands now print the markup rejections under their own heading, next to the ICU ones: same consequence, different fix. Neither list changes the exit code — a version that is missing some cells is still a version, and--require-completegoverns untranslated pairs, not a gate refusal. Both counts are now the server's own: the arrays are capped at 50, so the CLI reported "50" on exactly the publishes with the most damage. (#609) -
syncchecks the output format before it spends anything. A project that has not enabled the format informat:still translated, charged and published, and only then failed on the pull withformat "xcstrings" not configured for this project— credits gone, a version cut, and no catalog written. The format is now checked against the project's configuration up front, so the run stops before the first upload and says what to enable.--max-creditsanswered "is this run too expensive?" but never "can this run deliver anything at all?". Skipped by--no-publish, which never pulls. (#530) -
syncno longer reverts a translation the project produced after your catalog was pulled. The per-string decision was "the file differs, so the file wins", and a dashboard edit, an AI fill or a reviewer's sign-off made between your last pull and your next sync went back to the file's older text — counted as "imported", with nothing in the log. It is now kept on the server and reported, one warning perkey [lang]naming who wrote it and when (also under--dry-run); the pull at the end of the run brings the kept value into your catalog, so the PR diff is where you review it (under--no-publishthat pull is skipped and the CLI says so — the kept value stays server-side and the conflict reports again on the next run). Pass--on-conflict fileto make the catalog win anyway — the pair is still reported, including the human sign-off it wipes. A value that came from a file in the first place is still yours to change from the file, silently, as before. Conflicts are reported off every request, not just the cost preview, so one that only appears once the run starts is named too, and the summary counts the server's total rather than the rows it listed. (#550) -
pushnow tells you when a string was skipped because its key is switched off. A key switched off in the app is excluded from published output, so the backend never translates it — but the push looked clean while those strings silently stayed untranslated. It now warns, and says what to do (re-enable the key). Unlike the source-verification gate this is not a deferral: nothing will translate them until someone switches the key back on. The same push also stopped being billed for those keys. (#563) -
syncno longer exits 0 after losing a key to a concurrent sync. When two CI jobs sync at the same time, the one that loses a key's create gets that entry back ascontendedinstead of a 500.syncnow re-POSTs the catalog (up to twice) so the entry lands on the key the other run created, and fails the run if it is still unwritten — the two jobs may carry different catalogs, in which case the peer's write is not yours and a green job would drop this branch's strings until someone pushed again. (#564) -
syncnow reports the strings your code no longer references. A String Catalog carries Xcode's own verdict per phrase (extractionState: "stale"— its compiler pass over your sources could not find the string), and nothing read it, so there was no way to see which of your keys were leftovers from a reworked screen. The summary now ends withN no longer in your code, and the dashboard flags those keys with a "Not in code" badge and a filter to review them in bulk. It is a signal, not an action: nothing is disabled or deleted, and nothing stops publishing, becausestaleis a conjecture — a string reached through a computed key is marked stale while still on screen, so the call is yours. (#558)
0.9.0 #
-
pullnow writes to thecatalog:you configured. It resolved its destination fromoutput:alone, so a project whose catalog lives atEscapeCall/Localizable.xcstringsgot a straylib/l10n/tree instead — in an Xcode project with nolib/at all — while the run reported success and recorded the wrong path as fact.catalog:names one file and now decides wherepullwrites it;output:stays what it always was, the directory for formats that render one file per locale. -
pullmerges into a String Catalog instead of replacing it. A.xcstringsis written by two tools, and only one of them is us: Xcode owns the file's structure, key order, per-key metadata (extractionState,isCommentAutoGenerated) and every key added since the last publish. Overwriting it deleted them, and only an Xcode rebuild brought them back. The pull now injects the served translations into the local file and re-prints it in Xcode's exact style — the same mergesynchas done since 0.8.1, with one difference: a key that exists only on the server is added here, since a pull is the only way a key created in the dashboard reaches your file. A pull that changes no translations is now a byte-exact no-op, including the first one on a fresh checkout. The trade is that a pull no longer removes anything: a key deleted from the project stays in your catalog until Xcode's own extraction pass drops it, which is the right owner for that decision but worth knowing. -
Unknown settings in
easyi18n.yamlare reported.ouput:used to be read past in silence, leaving the run on a default. It is now a warning naming the key and listing the ones the CLI reads — a warning and not an error, so a config written for a newer CLI keeps working on a pinned one. -
catalog:is refused with a per-locale format. It names one file holding every language, so pairing it with a format that renders one file per locale is a contradiction — and a silent one when the project has a single language, because then exactly one file is served and that locale's render would land inside the catalog reporting success. The run now stops before the request, naming both settings. -
--langis refused withformat: xcstrings. A String Catalog holds every language in one file, and a single-locale render drops the base values its keys are addressed by — it would have merged nothing while reporting success. -
easyi18n statusnow sees a catalog pull (it recorded nothing before). -
pushnow checks--langagainst the project before spending a request. The server does not reject an unknown code — it intersects the list with the project's targets, so a typo is dropped silently and the run reports success having translated nothing for it. That silence is what this catches: an unknown code now fails locally with the configured targets listed. Naming only the base language fails too (the base is never a fill target, so the server answersno_target_langs), and a language set to manual translation is refused when named explicitly — the server's one real rejection here — or reported when it is merely part of the default set. Codes are matched the way the backend stores them, sopt_BRandpt-brare the same language. -
push --publishsays what will happen to strings that are still untranslated, instead of describing both outcomes and committing to neither:/metanow carries the project's integration mode. -
push --publishwarns when the localmode:and the dashboard's project mode disagree. They are set independently and never synced, and until now nothing could see both halves at once. -
All three degrade quietly:
pushneeds thetranslatescope and/metaneedsread, so a narrower key keeps working exactly as before. -
push --publishon a Mode A config (mode: a) now publishes withincompleteMode: skipexplicitly. Baking source text into the pulled files marks untranslated keys as done forever — a TMS workflow's own untranslated report is the signal that matters. Other configs keep omitting the field; the server now resolves an omitted value from the project's declared integration mode (skip for TMS, source otherwise).
0.8.1 #
syncnow merges translations into your catalog instead of replacing it. Opening a catalog in Xcode rewrites the file — its own" : "spacing, a localized key ordering, entries re-synced from code, andextractionStatemetadata. Replacing the file with the server's rendering reverted all of that, so Xcode and the sync PR would reformat each other's work forever. The local file now owns structure, order and metadata; the sync only injects the translatedlocalizationsper key, serialized in Xcode's exact style (pinned byte-for-byte by a golden captured from a real Xcode save). A converged catalog round-trips byte-identical.
0.8.0 #
- New
easyi18n sync— continuous i18n for file-first projects (iOS String Catalogs first). Pointcatalog:ineasyi18n.yamlat yourLocalizable.xcstringsand one command does the whole loop: upload the catalog, translate only what changed (translations the file already carries are imported verbatim, never re-charged), publish, and write the translated catalog back onto the same path. Built for CI:--yes,--dry-run,--max-credits,--no-publish,--require-complete. Re-running on an unchanged catalog is a byte-exact no-op, so a workflow can run it on every push and only open a PR when git sees a diff. Keys removed from the catalog are disabled server-side (and re-enabled if the phrase returns) — nothing is ever deleted. Pairs whose AI retry budget is spent are reported separately with a dashboard pointer instead of spinning the retry loop. publish(used by push and sync) understands the backend's newskipIfIdenticalanswer: identical content returns the current version asunchangedinstead of minting a new one.- The
Run 'flutter gen-l10n'hint after a pull now only prints forarbpulls — it made no sense after pulling an.xcstringsor.po.
0.7.1 #
- Installable in a Flutter project again. The
analyzerfloor was^13.3.0, but analyzer>=13.1.0requiresmeta ^1.18.3while the Flutter SDK pinsmeta 1.18.0— sodart pub add dev:easyi18n_cli, the documented install path, failed version solving in every Flutter app. The floor is now>=13.0.0 <14.0.0; nothing in the CLI used an API newer than 13.0.0. This hit Mode A users hardest: they only runpull, and the analyzer is used solely bypush/apply. Global activation (dart pub global activate easyi18n_cli) was, and remains, unaffected.
0.7.0 #
push --publishis no longer all-or-nothing. A string whose AI fill failed (e.g. a transient backend error dropped its chunk) used to abort the whole publish, holding every completed translation hostage. The CLI now re-queues failed strings up to 2 times (a failed fill releases its hold, so the retry only charges work that was never paid for) and, if stragglers remain after the retries or the 10-minute wait, publishes anyway with a warning — the missing cells serve the source text until a laterpush --publishfills them. Pass the new--require-completeflag to restore the previous fail-instead-of-publishing behaviour.
0.6.0 #
- Fix
--max-creditsunits. The API reports estimates and balances in millicredits (1 credit = 1000 mc), andeasyi18n pushcompared the raw mc value against--max-credits— so a documented-as-credits ceiling was enforced 1000× too strictly (--max-credits 500really meant 0.5 credits). The flag is now read in credits (decimals allowed, e.g.--max-credits 0.5) and converted at the edge. Cost previews, confirmation prompts, and abort messages now print credits (~107.3 credit(s)) instead of raw millicredits. If you were compensating by passing mc-scale ceilings, divide them by 1000.
0.5.0 #
easyi18n pullnow records what it writes (.easyi18n/state.json) and, on the next full pull of the same format and output dir, removes recorded files the server no longer serves — e.g. a locale renamed to its platform-canonical filename (app_zh-hant.arb→app_zh_Hant.arb), sweeping stranded.tmpfiles and emptied dirs along. A--langpull never prunes; aformat:oroutput:switch lists the old target's stranded files instead of deleting across targets;--dry-runpreviews removals. The first pull that records its list warns about files it cannot attribute instead of deleting them.
0.4.0 #
-
easyi18n push --publish: after the push, waits for the AI fill to complete (polling the dry-run estimate) and publishes a new version via the public publish endpoint — no dashboard needed.--approved-onlytreats unapproved translations as missing when publishing. Needs an API key with thepublishscope. -
New
easyi18n rollback [version]: restores a prior published version as a NEW version (history is never rewritten). With no argument it restores the version just before the current one. -
New
easyi18n doctor: read-only health check of the whole integration. Verifies the local wiring (config,easyi18ndependency,assets/easyi18n/floor,com.apple.security.network.clientin both macOS entitlements,Easyi18nScopemounted), lints yourtr()source strings as ICU (malformed ICU renders raw to users), and actively probes delivery — manifest reachable, CORS served, then your tr() scan graded against the published bundles: missing (never pushed/published), untranslated per locale, and unused keys. Bundles are integrity-checked against their content address (a stale CDN object fails doctor the same way the runtime rejects it), a 200 that isn't a manifest is a failure (SPA catch-all / captive portal), and a CORS header locked to one origin is surfaced instead of passing as "present". Exit 1 on blocking problems; warnings don't block. -
push/extract: atr()call whosectx:is not a string literal is now reported as dynamic instead of being registered as the (wrong) no-ctx unit.
0.3.0 #
easyi18n initis now one-command project setup: besideseasyi18n.yamlit adds theeasyi18n:dependency and theassets/easyi18n/offline floor topubspec.yaml(creating the dir), ignores the derived.easyi18n/state in.gitignore, grantscom.apple.security.network.clientin BOTH macOS.entitlements(delivery fetches fail silently in the sandbox without it), and wiresEasyi18nScopearound a trivialrunApp(...)(printed as a snippet whenmain.dartis not trivially patchable). Idempotent; new--dry-runflag reports without writing. An existingeasyi18n.yamlis now kept (re-run friendly) instead of an error —--forcestill rewrites it.
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.