You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22-5Lines changed: 22 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,12 +25,27 @@ This code and most of the README are from the team at [PlayCanvas](https://githu
25
25
preserve structure)
26
26
--suffix <suffix> Custom suffix for output files (default: language
27
27
name)
28
-
--completeness <mode> Completeness check mode: warn, fail, or off (default:
29
-
warn)
30
-
--log-chunk-metadata Log API metadata for each chunk (and on mismatches)
28
+
--log-chunk-metadata Log API metadata for each chunk
31
29
-h, --help display help for command
32
30
```
33
31
32
+
The translator now uses the AST pipeline by default.
33
+
34
+
### Interpreting AST parse failures
35
+
36
+
In AST mode, each chunk asks the model to return a strict JSON array of `{ id, text }` items.
37
+
38
+
- Parse errors such as `Expected ',' or '}'` or `Expected ':' after property name` usually mean the model returned malformed JSON for that chunk.
39
+
- These are response-format failures, not semantic translation failures.
40
+
-`finishReason: STOP` with parse errors means the output completed, but the JSON structure was invalid.
41
+
- When you see `json repair retry`, the tool requested a strict JSON retry and recovered automatically.
42
+
- When you see `split fallback recovered X/Y missing ids`, the tool retried unresolved IDs in smaller sub-batches and merged recovered results back into the chunk.
43
+
44
+
How to read the outcome:
45
+
46
+
-`AST completeness check: Translated IDs N/N - ✅ PASS` means the chunk is fully recovered, even if repair notes are present.
47
+
- Missing IDs after all retries are the only case that indicates unresolved chunk-level translation for those specific items.
0 commit comments