Skip to content

refactor(i18n): migrate to next-intl#137

Merged
JohnsonMao merged 3 commits intodevfrom
feat/i18n
Nov 23, 2025
Merged

refactor(i18n): migrate to next-intl#137
JohnsonMao merged 3 commits intodevfrom
feat/i18n

Conversation

@JohnsonMao
Copy link
Copy Markdown
Owner

  • Replace custom i18n system with next-intl library
  • Move i18n messages from data/i18n/locales to content/i18n/messages
  • Update all components and pages to use next-intl APIs
  • Add next-intl routing and navigation configuration
  • Update test utilities to support next-intl
  • Remove custom useI18n hook and getLocale utility
  • Update Next.js and Jest configs for next-intl integration

- Replace custom i18n system with next-intl library
- Move i18n messages from data/i18n/locales to content/i18n/messages
- Update all components and pages to use next-intl APIs
- Add next-intl routing and navigation configuration
- Update test utilities to support next-intl
- Remove custom useI18n hook and getLocale utility
- Update Next.js and Jest configs for next-intl integration
@JohnsonMao JohnsonMao self-assigned this Nov 23, 2025
@vercel
Copy link
Copy Markdown

vercel bot commented Nov 23, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
amao Ready Ready Preview Comment Nov 23, 2025 8:41am

@codecov
Copy link
Copy Markdown

codecov bot commented Nov 23, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (bf4ec9a) to head (648cafc).
⚠️ Report is 5 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff            @@
##               dev      #137   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           33        31    -2     
  Lines          555       541   -14     
  Branches        93        93           
=========================================
- Hits           555       541   -14     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

- Add test case for generateViewport function
- Exclude i18n files from Jest coverage collection
- Add tests for notFound when locale is not supported in layout
- Refactor InfiniteList: remove unused Top10PostList component
@JohnsonMao JohnsonMao merged commit f433a0b into dev Nov 23, 2025
6 checks passed
@JohnsonMao JohnsonMao deleted the feat/i18n branch November 23, 2025 08:41
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.

1 participant