Skip to content

feat: add Japanese and Chinese translations for notro-docs#171

Open
mosugi wants to merge 11 commits into
mainfrom
claude/notion-articles-three-languages-rtdxN
Open

feat: add Japanese and Chinese translations for notro-docs#171
mosugi wants to merge 11 commits into
mainfrom
claude/notion-articles-three-languages-rtdxN

Conversation

@mosugi
Copy link
Copy Markdown
Owner

@mosugi mosugi commented May 22, 2026

  • Remove 8 fixture test articles (01-callout through 08-misc)
  • Add 16 Japanese (ja/) translation files for all docs sections
  • Add 16 Chinese Simplified (zh-cn/) translation files for all docs sections
  • All 32 new articles pushed to Notion docs data source with Public=true

Covers: getting-started, guides, reference, and deployment sections.

claude added 2 commits May 22, 2026 13:44
- Remove 8 fixture test articles (01-callout through 08-misc)
- Add 16 Japanese (ja/) translation files for all docs sections
- Add 16 Chinese Simplified (zh-cn/) translation files for all docs sections
- All 32 new articles pushed to Notion docs data source with Public=true

Covers: getting-started, guides, reference, and deployment sections.
@vercel
Copy link
Copy Markdown

vercel Bot commented May 22, 2026

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

Project Deployment Actions Updated (UTC)
notro-basics Ready Ready Preview, Comment May 27, 2026 12:04pm
notro-blank Ready Ready Preview, Comment May 27, 2026 12:04pm
notro-blog Ready Ready Preview, Comment May 27, 2026 12:04pm
notro-docs Ready Ready Preview, Comment May 27, 2026 12:04pm
notro-gallery Ready Ready Preview, Comment May 27, 2026 12:04pm

Request Review

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 22, 2026

⚠️ No Changeset found

Latest commit: 880b4c4

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

…efix

Add Lang select property to blog content schema and update buildSlugMap()
to prepend the lang code for non-English articles, maintaining existing
URL structure (/blog/ja/hello-notro/, /blog/zh-cn/hello-notro/).

https://claude.ai/code/session_01AGGjEvy5H6Si7C4E5PYqWT
- Footer.astro: language switcher (English | 日本語 | 中文) that detects
  current lang from URL pathname and links to same article in other langs;
  non-article pages (index, pagination, tag) fall back to /blog/
- blog.test.ts: add makeEntry lang support and two new buildSlugMap tests
  for lang prefix behavior (non-en prepends lang/, null treated as en)
Show the switcher only when on an article page (isArticle=true).
On blog listing, pagination, tag, and home pages the current lang cannot
be determined and all links would point to /blog/, making the switcher
appear broken.
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