Skip to content

Conversation

@felicio
Copy link
Collaborator

@felicio felicio commented Dec 17, 2025

felicio and others added 2 commits December 16, 2025 11:40
Co-authored-by: JulesFILIOT <dev@julesfiliot.com>
@changeset-bot
Copy link

changeset-bot bot commented Dec 17, 2025

🦋 Changeset detected

Latest commit: 0c39404

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
hub Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Dec 17, 2025

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

Project Deployment Review Updated (UTC)
status-network-hub Ready Ready Preview, ✅ 5 resolved Jan 14, 2026 1:57pm
5 Skipped Deployments
Project Deployment Review Updated (UTC)
status-api Ignored Ignored Preview Jan 14, 2026 1:57pm
status-components Ignored Ignored Preview Jan 14, 2026 1:57pm
status-network-website Ignored Ignored Preview Jan 14, 2026 1:57pm
status-portfolio Ignored Ignored Preview Jan 14, 2026 1:57pm
status-website Ignored Ignored Preview Jan 14, 2026 1:57pm

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

f56dcf1 applied some message modifications

Signed-off-by: yjkellyjoo <yejinkellyjoo@gmail.com>
Signed-off-by: yjkellyjoo <yejinkellyjoo@gmail.com>
@felicio felicio mentioned this pull request Dec 22, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request adds internationalization (i18n) support to the apps/hub application using next-intl, introducing support for English and Korean languages. The changes include middleware setup, routing configuration, translation files, and comprehensive updates to components to use translation keys instead of hardcoded strings.

Changes:

  • Added next-intl and related i18n dependencies with middleware configuration
  • Created translation infrastructure (routing, request handling, navigation helpers, locale mapping)
  • Added comprehensive English and Korean translation files with 1091+ translation keys
  • Updated all components, pages, and layouts to use translation hooks and keys

Reviewed changes

Copilot reviewed 79 out of 80 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
pnpm-lock.yaml Added i18n dependencies: next-intl, @formatjs/intl-localematcher, negotiator, @radix-ui/react-select
apps/hub/next.config.ts Integrated next-intl plugin for i18n routing
apps/hub/src/middleware.ts Added i18n middleware for locale detection and routing with hash preservation
apps/hub/src/i18n/* Created i18n infrastructure files for routing, request handling, and navigation
apps/hub/messages/*.json Added comprehensive translation files for English and Korean
apps/hub/src/app/layout.tsx Updated root layout for i18n support with locale-aware HTML lang attribute
apps/hub/src/app/[locale]/* Created locale-based routing structure with layouts and pages
apps/hub/src/app/_components/* Updated all components to use useTranslations hook instead of hardcoded strings
apps/hub/src/data/* Added translation keys (nameKey, descriptionKey) to app data
packages/status-network/src/components/* Exported FeedbackPopoverProps and added Footer labels prop for i18n
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 27 to 33
{t('hero.title').includes('on the free network') ? (
<>
Get started <br /> on the free network
</>
) : (
t('hero.title')
)}
Copy link

Copilot AI Jan 14, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The hero title handling includes a fallback check for the English text "on the free network" which is brittle. If the translation changes slightly, this logic will break. Consider using a separate translation key for Korean or restructuring the title to avoid this conditional rendering based on string matching.

Copilot uses AI. Check for mistakes.
@felicio
Copy link
Collaborator Author

felicio commented Jan 14, 2026

We can also handle the i18n in:

  • apps/hub/src/app/_hooks/useApprovePreDepositToken.ts: 'Token Allowance has been increased'

  • apps/hub/src/app/_hooks/useApproveToken.ts: 'Token Allowance has been increased'

  • apps/hub/src/app/_hooks/useLockVault.ts:

    • 'Lock time extended successfully'
    • Vault ${shortenAddress(vaultAddress)} has been locked
  • apps/hub/src/app/_hooks/usePreDepositVault.ts: Successfully deposited into ${vault.name}

  • apps/hub/src/app/_hooks/useWrapETH.ts:

    • 'Successfully wrapped ETH to WETH'

ff582f8

Copy link
Contributor

@jinhojang6 jinhojang6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@felicio felicio merged commit 07e85e1 into main Jan 14, 2026
14 checks passed
@felicio felicio deleted the i18n/sn-app branch January 14, 2026 14:06
@github-project-automation github-project-automation bot moved this from Waiting to Done in Web & User Interfaces Jan 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

6 participants