nextjs-cjk-i18n-typography
CommunityRefine CJK typography and locale switching in Next.js.
Authorhubeiqiao
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill addresses common visual and functional issues that arise when integrating CJK (Chinese, Japanese, Korean) languages into Next.js applications using next-intl, ensuring a polished and accurate user experience.
Core Features & Use Cases
- Conditional Font Sizing: Adjusts font sizes to prevent CJK text from appearing oversized compared to Latin text.
langAttribute Escape Hatch: Prevents CJK font styles from incorrectly applying to Latin text elements like signatures or brand names.- Text Wrapping Control: Manages text wrapping behavior for CJK headings to ensure they fit on a single line when appropriate.
- Locale Switching Reliability: Implements a robust method for locale switching that avoids redirect loops caused by stale cookies.
- Path Matching: Ensures route-based visibility logic correctly handles locale-prefixed URLs.
- Mobile Spacing: Optimizes spacing for CJK text on mobile devices.
- Use Case: A Next.js e-commerce site needs to display product titles and descriptions accurately in Japanese, Chinese, and English. This skill helps ensure headings are legible, brand names remain in their original font, and the language switcher functions flawlessly.
Quick Start
Use the nextjs-cjk-i18n-typography skill to adjust font sizes for CJK text in your Next.js application.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 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: nextjs-cjk-i18n-typography Download link: https://github.com/hubeiqiao/skills/archive/main.zip#nextjs-cjk-i18n-typography Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.