morningman opened a new pull request, #4228: URL: https://github.com/apache/doris-website/pull/4228
## Goal Add a manually invoked Japanese translation candidate tool on top of the merged T06 planner. It does not run in website builds or on production events. ## Changes - Accept only selected T06 tasks for the current commit and the managed Dev, 4.x, or community paths. Reject stale sources, modified targets, moves/deletions requiring cleanup, and path escapes. - Extract translatable Markdown/MDX text, simple front matter, image alt text, and allowlisted visible attributes. Reconstruct code, SQL, URLs, MDX expressions/imports, route fields, and other technical content from the source. Verify placeholders, headings, structure, MDX compilation, and the existing protection signature. - Use a bounded OpenAI Responses API adapter with explicit model configuration, structured JSON output, timeout, retry and token limits. Add a versioned Japanese glossary and an offline mock provider. - Stage candidates and a manifest under `.i18n-build/`; a separate `--apply-staged` command rechecks the exact reviewed bytes before updating managed Japanese targets and state. Mock candidates cannot be applied. New records remain `reviewStatus: machine`. - Document the workflow and add the translation-engine tests to Build Check. ## Verification - `node --test scripts/i18n/__tests__/*.test.cjs`: 51/51 passed. - T06 full scan on the starting merged head: 3,286 required, 233 current, 3,053 pending. A selected real Dev page was staged with the offline mock and left managed sources/targets/state untouched. - `git diff --check`: passed. `liveVerified=false`: no model credential was available, so there was no live model call, latency/cost measurement, or Japanese quality review. T08 must retain its model-generation switch off until a limited live run is reviewed. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
