Skip to content

fix(i18n): copy generated pages into the ja docs so relative links resolve - #4928

Merged
thetaPC merged 1 commit into
mainfrom
ja-generated-pages
Dec 2, 2026
Merged

thetaPC merged 1 commit into
mainfrom
ja-generated-pages

Conversation

@thetaPC

@thetaPC thetaPC commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Issue

Production deploys have failed since 12-02. The Japanese build can't resolve 26 links in 15 translated pages. The 12-01 sync brought main's relative links, such as ../native/camera.mdx, into translation/jp. A relative link only resolves inside the Japanese docs folder, where the generated native and CLI command pages don't exist. Previews build English only, so no PR caught it.

Changes

  • scripts/i18n.sh copies the generated docs/native and docs/cli/commands pages into the Japanese docs after downloading the translation. Japanese readers already got these pages in English, so the site doesn't change.

How to test

Previews don't build Japanese, so build every locale locally:

npm run prebuild && NODE_OPTIONS=--max-old-space-size=16384 npx docusaurus build

On main the [ja] step fails with "Markdown link ... couldn't be resolved". On this branch both locales build, and build/ja/angular/your-first-app/index.html links to /docs/ja/native/camera.

@vercel

vercel Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
ionic-docs Ready Ready Preview Dec 2, 2026 7:29pm UTC

Request Review

@thetaPC
thetaPC marked this pull request as ready for review December 2, 2026 19:29
@thetaPC
thetaPC requested a review from a team as a code owner December 2, 2026 19:29
@thetaPC
thetaPC requested a review from brandyscarney December 2, 2026 19:29
@thetaPC
thetaPC merged commit 060ab4d into main Dec 2, 2026
7 checks passed
@thetaPC
thetaPC deleted the ja-generated-pages branch December 2, 2026 19:43

This branch was successfully deployed

1 active deployment
Preview — 01e5bb56 Deployed Dec 2, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants