Skip to main content

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 languages array 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 indexPath to 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.svg to en/ directory

4. Documentation ✅

  • Created MULTI_LANGUAGE_GUIDE.md with 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)

  1. Translate the Content:
    • Option A: Use automated translation with Lingo.dev:
      npx lingo.dev@latest login
      npx lingo.dev@latest run
      
    • Option B: Manually translate content files
  2. Add Content for Each Language:
    • Each major section needs corresponding files in cn/ and ko/ directories
    • Example: en/starter/overview.mdxcn/starter/overview.mdxko/starter/overview.mdx
  3. Test Locally:
    mint dev
    
    Visit http://localhost:3000 and test the language selector
  4. Add More Sections (if needed):
    • Copy en/ directory structure to cn/ and ko/
    • Create placeholder or translated content

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

See MULTI_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.json now 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