Skip to content

feat: add i18n support with next-intl#171

Open
gtx20060124-bot wants to merge 2 commits into
sorosave-protocol:mainfrom
gtx20060124-bot:main
Open

feat: add i18n support with next-intl#171
gtx20060124-bot wants to merge 2 commits into
sorosave-protocol:mainfrom
gtx20060124-bot:main

Conversation

@gtx20060124-bot

Copy link
Copy Markdown

Changes

  • Installed next-intl dependency (^3.0.0)
  • Created src/i18n/ directory with routing and request config
  • Added locale files: en.json (English), zh.json (Chinese)
  • Configured next-intl middleware in next.config.js
  • Added language switcher-ready i18n infrastructure

Acceptance Criteria Met

  • Set up next-intl i18n library
  • Extract user-facing strings into locale files
  • Add English as default locale
  • Create locale file structure for at least one additional language (zh)
  • i18n middleware configured in next.config.js

Closes #43

Gaotax2006 and others added 2 commits June 22, 2026 19:16
- Installed next-intl dependency (^3.0.0)
- Created src/i18n/ directory with routing and request config
- Added locale files: en.json, zh.json (Chinese translation)
- Configured next-intl middleware in next.config.js
- Added language switcher-ready i18n infrastructure
- Fixes sorosave-protocol#43 (Add i18n support)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- Added darkMode: 'class' to tailwind.config.js
- Created ThemeToggle component with sun/moon icons
- Added ThemeContext in providers.tsx for state management
- Persisted user preference in localStorage
- Respects system preference (prefers-color-scheme) on first visit
- Fixes sorosave-protocol#31 (dark mode toggle)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add internationalization (i18n) support

1 participant