add-locale-url-prefix

Official

Restore locale-aware routing in Next.js shop.

Authorvercel
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Restoring locale-prefixed URLs and next-intl routing in the shop template to re-enable multi-language navigation and locale-aware content delivery.

Core Features & Use Cases

  • Recreate routing and navigation files for Next.js app with locale prefixes and next-intl routing.
  • Move routes back under app/[locale]/ to restore per-locale page structure and generateStaticParams for available locales.
  • Restore locale utilities and middleware (lib/i18n/routing.ts, navigation.ts, getLocale, request config, proxy middleware) to load locale-specific messages and ensure correct URL rewrites.
  • Update SEO, sitemap, and redirects to preserve per-locale canonical URLs and language alternates.
  • Use cases include multi-language storefronts where URLs reflect locale, and dynamic locale switching via the megamenu locale selector.

Quick Start

Recreate the locale routing setup and move routes under app/[locale]/ to restore locale-aware navigation across the shop template.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: add-locale-url-prefix
Download link: https://github.com/vercel/shop/archive/main.zip#add-locale-url-prefix

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.