eloqnt/studiov0.5
Navigation

eloqnt/cli

eloqnt translate

Requires a plan

Fill in missing translations across your target locales.

A run translates every string that doesn't have a translation yet, leaving existing translations untouched. Before translating, it's recommended to run eloqnt review first, so mistakes in source strings don't spread out.

eloqnt translate
Context enrichment complete
Styleguides loaded (global, es)
Translated de, es via eloqnt/engine (hosted)
Post-translation checks done
messages/
de.json 2 translated
es.json 2 translated
✔ Project fully translated

Each run applies the following steps:

  1. If srcPath is configured, source strings are enriched with contextual information from their call sites about how they're used
  2. All applicable styleguides are loaded to steer tone, terminology, and consistency
  3. Post-translation checks guard against translation errors and will retry rejected translations automatically

Flags

--idstring(Re-)translate these message ids (comma-separated)
--localestringRestrict to these target locales (comma-separated)
--configstringPath to the eloqnt config file (defaults to .eloqnt/config.{ts,mts,js,mjs})
--jsonbooleanOutput the result as JSON