Multi-Language Setup Summary
Changes Made
1. Directory Structure ✅
- Created three language directories:
en/,cn/,ko/ - Moved all existing English content into
en/directory - Created matching directory structures for Chinese (
cn/) and Korean (ko/)
2. Configuration Files ✅
docs.json
- Added
languagesarray to navigation configuration - Configured navigation for all three languages:
- English (en): “Whitepaper”, “Getting started”, “Core Systems”, “Protocol Token ($XNY)”, “Community”
- Chinese (cn): “白皮书”, “入门指南”, “核心系统”, “协议代币 ($XNY)”, “社区”
- Korean (ko): “백서”, “시작하기”, “핵심 시스템”, “프로토콜 토큰 ($XNY)”, “커뮤니티”
- Updated asset paths (favicon, logo) to reference
en/directory - Added
indexPathto specify English as the default entry point
i18n.json (NEW)
- Created configuration file for automated translations using Lingo.dev
- Configured to translate from English (
en) to Chinese (cn) and Korean (ko)
3. Initial Content ✅
- Created
cn/index.mdx(Chinese homepage) - Created
ko/index.mdx(Korean homepage) - Copied
favicon.svgtoen/directory
4. Documentation ✅
- Created
MULTI_LANGUAGE_GUIDE.mdwith complete instructions - Created
WHAT_CHANGED.md(this file)
Current Status
Completed ✅
- ✅ Directory structure created
- ✅ Content reorganized into language directories
- ✅ Navigation configuration updated
- ✅ Translation automation setup
- ✅ Initial placeholder files created
Next Steps (For You)
-
Translate the Content:
- Option A: Use automated translation with Lingo.dev:
- Option B: Manually translate content files
- Option A: Use automated translation with Lingo.dev:
-
Add Content for Each Language:
- Each major section needs corresponding files in
cn/andko/directories - Example:
en/starter/overview.mdx→cn/starter/overview.mdx→ko/starter/overview.mdx
- Each major section needs corresponding files in
-
Test Locally:
Visit
http://localhost:3000and test the language selector -
Add More Sections (if needed):
- Copy
en/directory structure tocn/andko/ - Create placeholder or translated content
- Copy
File Locations
English (Complete)
- All content in
en/directory - Fully functional with all existing content
Chinese (Needs Content)
- Structure exists in
cn/directory - Only index page created
- Need to add translated content files
Korean (Needs Content)
- Structure exists in
ko/directory - Only index page created
- Need to add translated content files
How to Use
SeeMULTI_LANGUAGE_GUIDE.md for detailed instructions on:
- Adding new pages
- Translating content
- Using automated translations
- Viewing your documentation
Notes
- The language selector will appear automatically in your documentation
- English is set as the primary/default language
- All paths in
docs.jsonnow include language prefixes (e.g.,en/starter/overview) - Asset paths (images, logos, etc.) need to be language-specific if you want different assets per language