morningman opened a new pull request, #4207: URL: https://github.com/apache/doris-website/pull/4207
Japanese files currently count as translated solely because they exist, so old SQL and parameters can remain visible after their source changes. This adds versioned translation state and a build-time content view: matching records render Japanese, reviewed prose-only changes retain Japanese with a stale notice, and technical, unknown or conflicting changes render the latest original without modifying the committed translation. The same decision controls status notices, body language, source update dates, canonical URLs, noindex and reciprocal language alternates. The native Docusaurus route parser supplies page identities and permalinks; orphan targets and unsupported Chinese-only sources are reported. Japanese and automatic translation remain disabled in production. Validation: - 14 focused state, heading, resource and SSR tests pass. - Local Dev builds pass with Japanese disabled and enabled; default English/Chinese page signatures and browser behavior match the T01 baseline. - Static checks cover 1,778 Dev/content routes, including sitemap, search exclusion and reciprocal alternates. - The real three-language fixture covers stale SQL, unknown and approved prose changes, manual target edits, invalid metadata, source deletion, separate versions/plugins and Chinese source policy. Browser and full active-version CI evidence will be added after completion. - TypeScript retains the pre-existing 150 distinct diagnostics, with no new diagnostics. Repository review checkpoints: - Goal and scope: T02 supplies independently usable status/fallback/SEO behavior; it does not call models or enable public Japanese. - Information architecture and references: no source docs, slugs, sidebar entries or existing redirects are moved. Current, active versions and all four docs-plugin instances retain native enumeration. Japanese heading IDs follow current English IDs. - Frontend/configuration: default English/Chinese behavior is preserved; notices use semantic theme tokens. Only Japanese routes use the temporary content view and translation-aware cache snapshot. - Validation: local website builds use `DOCS_VERSIONS=current`; the read-only Japanese workflow validates all active versions and memory in its existing single sequential job. Existing unrelated warnings are retained. - Other issues: no unresolved implementation issue found in self-review; public launch still depends on T03–T05. ## Versions - [x] dev - [x] 4.x - [x] 3.x - [x] 2.1 or older (framework behavior only) ## Languages - [x] Chinese (compatibility) - [x] English (compatibility) - Japanese (opt-in) ## Docs Checklist - [x] Checked by AI - [x] Test Cases Built - [x] Updated required version and language counterparts, or explained why not - [x] If only one language changed, confirmed whether source/translation counterparts need sync -- 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]
