Translation Commands
Translation commands operate on one locale and one term key at a time.
translation use
traduora translation use <locale_code> [--format <table|json>]
Stores default locale in state file.
translation add
traduora translation add --term <key> --value <text> [--locale <code>] [--label <label[,label...]>] [--format <table|json>]
Upserts translation value for given term and locale.
translation list
traduora translation list [--locale <code>] [--format <table|json>]
Lists translations and resolves term IDs back to term keys.
Default output is table; use --format json for automation scripts.
translation update
traduora translation update --term <key> --value <text> [--locale <code>] [--label <label[,label...]>] [--format <table|json>]
Updates translation value and optional labels.
translation delete
traduora translation delete --term <key> [--locale <code>] [--format <table|json>]
Clears translation value for the term in that locale.
Parameters and behavior
- Project is always resolved from current state (
currentProjectId). --locale: optional if current locale is set.--term: required, uses human-readable key.--value: required for add/update.--label: translation labels; missing labels are auto-created.--format:tableby default,jsonfor machine-readable output.
Example
traduora translation use en_GB
traduora translation add --term form.email.required --value "E-mail input is required" --label validation
traduora translation update --term form.email.required --value "E-mail is required"