[jp-sync] Sync switch topics translation (from #546) - #835
github-actions[bot] wants to merge 7 commits into
Conversation
Sync Japanese documentation with English switch topic updates from commit 5f68139 (feat(switch): update switch topics (#546)). - components/inputs/switch.mdx: full translation of the reworked Switch topic (anatomy, getting started, usage, interaction states, styling, accessibility, troubleshooting, FAQ, related components). - components/inputs/badge.mdx: updated Sample height (212 -> 250) for the outlined badge example, matching the English change. - toc.json: removed the Angular exclude on the Switch entry and added updated: true, matching the English toc.json change. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
@ChronosSF I ran our check prompt against these files, and overall, they look like a good result. The main corrections involved ensuring consistency in terminology across related pages. As previously reported, we believe that if the prompt were to instruct the system to maintain consistency in translations by cross-referencing with existing documents, even a low-cost AI model could achieve a level of accuracy that would eliminate the need for this type of correction. |
|
@mkamiishi , could you please re-review. I had to fix the getting started links for angular which we started breaking a bit earlier than this PR. |
|
@ChronosSF |
0288ad9
jsakamotoIGJP
left a comment
There was a problem hiding this comment.
@ChronosSF When I checked it on my end with the npm run angular:dev:jp command, it showed an error below.
Cannot find module '@xplat-images/anatomy-content-light/switch-lt-a.png'
imported from '.../docs/angular/src/content/jp/components/inputs/switch.mdx'
So, I copied the required image files from the English version to the JP content directory. Please also see commit 0288ad9.
After that, it looked perfect, so I'll approve this pull request.
|
@ChronosSF As I described above, this pull request had an issue because some image files were missing on the JP content side. Moreover, I noticed that this kind of issue, such as a lack of image files, was never detected by any CI checks. I'd appreciate it if someone could improve the CI checks to detect missing image files. |
|
@ChronosSF For now, this pull request includes changes in EN conten so we, JP team, can't merge these commits into the vnext branch. |
@copilot , log an issue about this finding. |
I couldn’t create the issue from this session: issue-creation access is unavailable (the CLI is unauthenticated and the browser tool is unavailable). Ready-to-file report: Title: CI: detect missing localized documentation image imports Problem: In #835, running The import came from the generated Angular JP switch topic. Screenshot. Commit 0288ad9 fixed the page by adding the JP anatomy and do/don’t images; preventing recurrence remains outstanding. CI evidence: The Angular CI job before the fix, at Acceptance criteria:
No changes to this PR are needed for filing this follow-up. |
Original author: Hristo Hristov 57346540+Hristo313@users.noreply.github.com
Syncs the Japanese (
docs/xplat/src/content/jp) documentation with the English switch topic changes introduced in commit5f68139("feat(switch): update switch topics (#546)").Files processed
docs/xplat/src/content/en/components/inputs/switch.mdxdocs/xplat/src/content/jp/components/inputs/switch.mdxPlatformBlock/ApiLink/Sample/Anatomy/Faq/FaqItemtags, imports, code blocks, and{Token}placeholders exactly. Tag counts were verified to match the English source (PlatformBlock: 57,ApiLink: 27,Sample: 14,FaqItem: 4). Addedlast_updated: "2026-08-31"andrelatedComponents: [Checkbox, ToggleButton]frontmatter fields to match the English source, alongside the existing_language: ja.docs/xplat/src/content/en/components/inputs/badge.mdxdocs/xplat/src/content/jp/components/inputs/badge.mdx<Sample>heights from212to250to match the English change. No prose changed in this file.docs/xplat/src/content/en/toc.jsondocs/xplat/src/content/jp/toc.jsonexclude: ["Angular"]entry for the Switch item and added"updated": true, matching the English toc.json change. The existing Japanesenamevalue ("スイッチ") was left untouched since it wasn't part of the diff.Not synced
docs/xplat/src/content/en/components/interactivity/accessibility-compliance.mdxhad a one-line link-path fix (../switch.mdx→../inputs/switch.mdx). The Japanese counterpart currently uses a different (older) table layout for this content that does not contain an equivalent Markdown link to update, so no change was made there. This pre-existing structural drift between the English and Japanese accessibility-compliance topics is unrelated to the Switch update and may need separate attention.