Skip to content

[FIX] 오늘 카드와 통계의 기본 태그 이름 다국어 처리 누락 수정 - #294

Merged
jjangminii merged 2 commits into
developfrom
fix/web/293-default-tag-i18n
Sep 26, 2026
Merged

jjangminii merged 2 commits into
developfrom
fix/web/293-default-tag-i18n

Conversation

@ehye1

@ehye1 ehye1 commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

ISSUE 🔗

close #293



What is this PR? 🔍

오늘 탭 카드와 통계 일별 상세에서도 기본 태그 이름이 현재 언어로 번역되어 표시되도록 수정하고, 태그 번역 로직을 공용 훅으로 모았습니다.

배경

  • 기존 구조: 서버는 기본 태그를 고정된 tagId(1~4)와 한국어 name으로 내려주고, 프론트가 tagId를 번역 키로 바꿔 next-intl로 표시합니다.
  • 발생 문제: 홈 카드와 투두 모달은 번역을 적용했지만, 오늘 카드와 통계는 tag.name을 그대로 사용해 /en에서도 "업무"처럼 한국어로 표시되었습니다. 서버 응답은 홈과 오늘 모두 { tagId: 2, name: "업무" }로 동일해 프론트 로직 문제로 확인했습니다.
  • 해결 방향: 번역 로직을 useTagLabel 훅으로 공용화하고, 누락된 화면에 적용했습니다.

공용 훅

  • 변경 요약: hooks/todo/use-tag-label.ts에 useTagLabel 훅을 추가했습니다.
  • 구현 방식: 훅이 (tag) => string 함수를 반환합니다. getDefaultTagLabelKey(tagId)로 기본 태그이면 Common.tag.* 번역을, 아니면 서버 name을 반환합니다. 목록을 map하는 컨테이너에서 쓰기 쉽도록 값 대신 함수를 반환하게 했습니다.

오늘 카드 · 통계 · 홈 카드

  • 변경 요약: 오늘 카드와 통계 일별 상세의 태그 이름을 useTagLabel로 번역하고, 홈 카드의 인라인 번역 로직을 훅으로 교체했습니다.
  • 이유: 같은 번역 로직이 화면마다 따로 구현되어 있어 새 화면에서 누락되기 쉬웠습니다.

오늘 카드 태그 기본 문구

  • 변경 요약: 태그가 없을 때의 기본 문구를 하드코딩된 "태그"에서 Home.createModal.tagLabel 번역 키로 교체했습니다.



To Reviewers

TodayTodoCard의 반복 설정 문구("매일" 등)도 하드코딩되어 있지만, 카드 툴바는 pointer-events-none이라 화면에 노출되지 않아 제외했습니다.



Screenshot 📷



Test Checklist ✔

  • pnpm check-types 통과
  • pnpm lint 통과
  • /en, /ko에서 오늘 탭과 통계 태그 표시 확인

ehye1 and others added 2 commits September 26, 2026 16:55
- 기본 태그는 tagId 기준으로 번역하고 사용자 태그는 서버 이름을 사용하는 useTagLabel 훅을 추가했습니다
- 홈 카드에서 직접 처리하던 태그 번역 로직을 공용 훅으로 교체했습니다

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 오늘 카드와 통계 일별 상세에서 서버 태그 이름 대신 번역된 태그 이름을 표시하도록 수정했습니다
- 오늘 카드의 태그 기본 문구를 하드코딩된 한국어 대신 번역 키로 표시하도록 수정했습니다

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
timo-client-timo-web Ready Ready Preview Sep 26, 2026 7:56am UTC

@coderabbitai

coderabbitai Bot commented Sep 26, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Repository: Team-Timo/Timo-client/.coderabbit.yaml

Review profile: ASSERTIVE

Plan: Advanced

Run ID: 15e5d7a9-3eaf-413a-a02e-897da9dbbbb6


Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added the ⏰ Timo-web Timo 웹 서비스 label Sep 26, 2026
@github-actions github-actions Bot added 🐛 Bug 기능이 정상적으로 작동하지 않는 문제 수정 ♥️ 혜원 혜원양 labels Sep 26, 2026
@github-actions

Copy link
Copy Markdown

Timo Performance Report

Bundle Size — timo-web
라우트 크기 First Load JS
/[locale]/home 275.82 kB 🔴 481.64 kB
/[locale]/today 260.04 kB 🔴 465.86 kB
/[locale]/focus 222.32 kB 🔴 428.14 kB
/[locale]/settings 228.90 kB 🔴 434.72 kB
/[locale]/statistics 210.79 kB 🔴 416.61 kB
/[locale]/[...rest] 0 B 🟡 205.82 kB
/[locale]/login 282.28 kB 🔴 488.09 kB
/[locale]/oauth/calendar/callback 121.37 kB 🟡 327.19 kB
/[locale]/oauth/callback 121.03 kB 🟡 326.85 kB
/[locale]/onboarding 294.76 kB 🔴 500.57 kB
/[locale] 120.35 kB 🟡 326.17 kB
/[locale]/policy 121.32 kB 🟡 327.14 kB
/robots.txt/route 0 B 🟡 205.82 kB
/sitemap.xml/route 0 B 🟡 205.82 kB

공유 번들: 205.82 kB
🟢 < 200kB  |  🟡 < 350kB  |  🔴 ≥ 350kB (First Load JS · gzip)

Lighthouse — timo-web
URL Perf A11y LCP CLS TBT
/en/home 🔴 62 🟢 96 🔴 16.1s 🟢 0.000 🟡 499ms
/en/today 🔴 62 🟢 96 🔴 16.2s 🟢 0.000 🟡 485ms
/en/focus 🔴 64 🟢 96 🔴 16.0s 🟢 0.000 🟡 451ms
/en/statistics 🔴 66 🟢 96 🔴 16.0s 🟢 0.000 🟡 361ms

Perf ≥ 70 / A11y ≥ 85 목표
LCP 🟢 < 2.5s 🟡 < 4s 🔴 ≥ 4s  |  CLS 🟢 < 0.1 🟡 < 0.25 🔴 ≥ 0.25  |  TBT 🟢 < 200ms 🟡 < 600ms 🔴 ≥ 600ms

Image Optimization — timo-web
파일 크기 포맷 상태
favicon.png 27.84 kB PNG ⚠️ 🟢
images/google-calendar.png 36.20 kB PNG ⚠️ 🟢
images/google-logo.png 26.79 kB PNG ⚠️ 🟢
og.png 437.44 kB PNG ⚠️ 🟡

총 4개 · 528.28 kB  |  🟢 < 200KB  |  🟡 < 500KB  |  🔴 ≥ 500KB
⚠️ 4개 파일 WebP/AVIF 변환 권장

측정 커밋: f927cc4

@jjangminii jjangminii left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

화면마다 흩어져 있던 태그 번역 로직을 useTagLabel 훅 하나로 모아서 새 화면에서 번역이 누락될 여지가 줄었네요 👍

@jjangminii
jjangminii merged commit 36dc221 into develop Sep 26, 2026
16 checks passed
@jjangminii jjangminii mentioned this pull request Sep 26, 2026

This branch was successfully deployed

1 active deployment
Preview — edd67a3b Deployed Sep 26, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

⏰ Timo-web Timo 웹 서비스 ♥️ 혜원 혜원양 🐛 Bug 기능이 정상적으로 작동하지 않는 문제 수정

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FIX] 오늘 카드와 통계의 기본 태그 이름 다국어 처리 누락 수정

2 participants