changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "additionalProperties": false,
+ "properties": {
+ "dryRun": {
+ "description": "True when nothing was written because a preview was asked for.",
+ "type": "boolean"
+ },
+ "failed": {
+ "description": "Locales the run attempted and lost.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "detail": {
+ "description": "The underlying message, when there is one worth passing on.",
+ "type": "string"
+ },
+ "locale": {
+ "description": "Locale that could not be translated.",
+ "type": "string"
+ },
+ "reason": {
+ "anyOf": [
+ {
+ "description": "Why the key could not be translated. A closed set — branch on the value.",
+ "enum": [
+ "provider-error",
+ "omitted-by-model",
+ "placeholder-mismatch",
+ "plural-mismatch",
+ "write-error",
+ "truncated"
+ ],
+ "type": "string"
+ },
+ {
+ "const": "read-error",
+ "type": "string"
+ }
+ ],
+ "description": "Why it failed. \"read-error\" means the locale file could not be read at all."
+ }
+ },
+ "required": [
+ "locale",
+ "reason"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "fallbackContext": {
+ "additionalProperties": {
+ "description": "The value of that field, as the prompt builder produced it."
+ },
+ "description": "Context to translate inline and persist with write_translations. Present only in agent mode.",
+ "propertyNames": {
+ "description": "Context field, e.g. \"keysToTranslate\", \"glossary\", \"instructions\".",
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "filesWritten": {
+ "description": "Number of locale files changed on disk. 0 on a dry run.",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "key": {
+ "description": "The key that was translated.",
+ "type": "string"
+ },
+ "message": {
+ "description": "What to do next, when the run needs something from you — in agent mode, that the fallbackContext has to be translated and written back.",
+ "type": "string"
+ },
+ "mode": {
+ "description": "How the run was executed: \"provider\" called the configured LLM, \"agent\" returned contexts to translate by hand, \"dry-run\" wrote nothing.",
+ "enum": [
+ "provider",
+ "agent",
+ "dry-run"
+ ],
+ "type": "string"
+ },
+ "model": {
+ "description": "Model that produced the translations. Absent outside provider mode.",
+ "type": "string"
+ },
+ "placeholderValidation": {
+ "additionalProperties": false,
+ "description": "Placeholder comparison of the new values against the source value.",
+ "properties": {
+ "errors": {
+ "description": "One entry per translation that did not match. Empty when ok is true.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "extra": {
+ "description": "Placeholders the translation invented and the source does not have.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "key": {
+ "description": "Dot-path key of the mismatching translation.",
+ "type": "string"
+ },
+ "kind": {
+ "description": "What failed: a placeholder set mismatch (the default) or a vue-i18n plural variant-count mismatch.",
+ "enum": [
+ "placeholder",
+ "plural-count"
+ ],
+ "type": "string"
+ },
+ "locale": {
+ "description": "Locale code the mismatch was found in.",
+ "type": "string"
+ },
+ "missing": {
+ "description": "Placeholders the source has and the translation dropped.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "sourceVariants": {
+ "description": "Plural variants in the source value. Present only for kind \"plural-count\".",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "targetVariants": {
+ "description": "Plural variants in the translated value. Present only for kind \"plural-count\".",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "locale",
+ "key",
+ "missing",
+ "extra"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "ok": {
+ "description": "True when every checked translation carries the same placeholders as its source.",
+ "type": "boolean"
+ },
+ "placeholders": {
+ "description": "Placeholder names found in the source values, e.g. [\"{name}\"].",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "ok",
+ "placeholders",
+ "errors"
+ ],
+ "type": "object"
+ },
+ "preview": {
+ "additionalProperties": {
+ "description": "The value written for that locale.",
+ "type": "string"
+ },
+ "description": "The translated values. Present only when includePreview was passed.",
+ "propertyNames": {
+ "description": "Locale code.",
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "skipped": {
+ "description": "Locales deliberately not translated.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "locale": {
+ "description": "Locale that was left alone.",
+ "type": "string"
+ },
+ "reason": {
+ "description": "Why the key or locale was deliberately not attempted. A closed set — branch on the value.",
+ "enum": [
+ "no-provider",
+ "already-translated",
+ "protected-locale"
+ ],
+ "type": "string"
+ },
+ "stale": {
+ "description": "Refines \"already-translated\": true when the existing value was written from source text that has changed since. Translation memory only.",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "locale",
+ "reason"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "sourceLocale": {
+ "additionalProperties": false,
+ "description": "The locale the translation was made from.",
+ "properties": {
+ "code": {
+ "description": "Canonical locale code, e.g. \"en-US\". This is the spelling to pass back to another call.",
+ "type": "string"
+ },
+ "file": {
+ "description": "Locale file name, e.g. \"en-US.json\". Absent for directory-per-locale layouts such as Laravel.",
+ "type": "string"
+ },
+ "language": {
+ "description": "BCP-47 language tag, e.g. \"en-GB\". Absent when the framework config carries none.",
+ "type": "string"
+ },
+ "name": {
+ "description": "Human-readable language name, e.g. \"Deutsch\". Absent unless the framework config names one.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "code"
+ ],
+ "type": "object"
+ },
+ "translated": {
+ "description": "Locales whose value was written.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "updatedSource": {
+ "description": "True when a sourceValue was written to the source locale before translating.",
+ "type": "boolean"
+ },
+ "wouldTranslate": {
+ "description": "Locales a dry run would translate. Present only on a dry run.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "key",
+ "sourceLocale",
+ "updatedSource",
+ "mode",
+ "translated",
+ "skipped",
+ "failed",
+ "filesWritten",
+ "dryRun",
+ "placeholderValidation"
+ ],
+ "type": "object"
+}