Skill
nextjs-locale-standalone
Add locale-prefixed i18n routing to a single (non-monorepo) Next.js App Router site — a middleware/proxy that redirects `/` and any unprefixed path to `/<locale>/…` using the locale toggle's last choice (the NEXT_LOCALE cookie) then the browser's Accept-Language, a `[locale]` layout with a LocaleProvider + hooks, and a LocaleToggle that persists the choice. Use when adding bilingual/multilingual routing to a standalone Next.js site, building `/en-hk/…` `/zh-hk/…` URL namespaces, redirecting the root to a default-or-remembered locale, persisting a language switch across visits, or detecting browser language in middleware. For a monorepo that shares this logic across several apps via a workspace package, use nextjs-locale-monorepo instead.
Bundled with Stealth Company — Agent Skills. Its trust score, security findings and other files are on the plugin page.
SKILL.md
- Path
- skills/nextjs-locale-standalone/SKILL.md
- Size
- 8.8 KB
- SHA-256
- 6d06a61bf8077fe4ec5d7f90103d699e96d303e8c856d036956afe730b4052e7
Install
Install the plugin's skills with the Skills CLI:
npx [email protected] add stealth-factory/skills