한국 경기 한국 좌측 고정, 국가명 한글 통일

This commit is contained in:
JinwooKim committed 2026-06-22 10:21:13 +09:00
1 parent 8580bbb713
commit 90d00a817b
5 files changed
+111 -38

No files matched your search

+6 -2
View File
@@ -57,7 +57,11 @@ export default function MatchDetail() {
const aShort = teamShort(match.teamA, lang);
const bShort = teamShort(match.teamB, lang);
const hook = lang === "en" ? t.hook(aShort, bShort) : match.hookText;
// 한국을 항상 왼쪽에 표시(요청)와 동일하게 공유 제목/후킹 카피도 한국 먼저.
const flip = match.teamB.code === "KOR" && match.teamA.code !== "KOR";
const leftShort = flip ? bShort : aShort;
const rightShort = flip ? aShort : bShort;
const hook = lang === "en" ? t.hook(leftShort, rightShort) : match.hookText;
const url = matchUrl(match.matchId);
return (
@@ -67,7 +71,7 @@ export default function MatchDetail() {
lang={lang}
share={{
url,
title: `${aShort} vs ${bShort} — TriplePick`,
title: `${leftShort} vs ${rightShort} — TriplePick`,
text:
lang === "en"
? `${hook} — see all 3 AI picks and make yours!`