Skip to content

fix(i18n): redirect uppercase locale URLs and normalize locale inputs - #1442

Merged
larbish merged 1 commit into
mainfrom
fix/i18n-locale-case
Sep 30, 2026
Merged

larbish merged 1 commit into
mainfrom
fix/i18n-locale-case

Conversation

@larbish

@larbish larbish commented Sep 30, 2026 •

Copy link
Copy Markdown
Collaborator

Follow-up to #1434 which serves regional locales under lowercase codes (zh-TW → /zh-tw).

  • Redirect URLs with an uppercase locale prefix (/zh-TW/…) to the lowercase URL with a 301.
  • Lowercase the locale input of the list-pages MCP tool, so zh-TW filters results instead of returning every locale.
  • Make findLocaleFolder() lowercase its own input.
  • Log which locale codes get lowercased

@vercel

vercel Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
docus Ready Ready Preview Sep 30, 2026 10:32am UTC

@pkg-pr-new

pkg-pr-new Bot commented Sep 30, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/create-docus@1442
npm i https://pkg.pr.new/docus@1442

commit: bc59ce1

@larbish
larbish merged commit e75bcf3 into main Sep 30, 2026
5 checks passed
@larbish
larbish deleted the fix/i18n-locale-case branch September 30, 2026 12:15

This branch was successfully deployed

1 active deployment
Preview — bc59ce15 Deployed Sep 30, 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.

1 participant