From e575e9e55b7633c4d46622dc26946ef651f55a7b Mon Sep 17 00:00:00 2001 From: Vnntnn Date: Mon, 26 Oct 2026 21:44:13 +0700 Subject: [PATCH 1/2] fix(web): the home page's category index shows the English name in English KindIndex still printed the Thai name in both languages; it now goes through categoryName() like the other places. Co-Authored-By: Claude Sonnet 5.5 --- apps/web/src/components/home-events.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/web/src/components/home-events.tsx b/apps/web/src/components/home-events.tsx index ed50519..cc73283 100644 --- a/apps/web/src/components/home-events.tsx +++ b/apps/web/src/components/home-events.tsx @@ -3,8 +3,9 @@ import { ArrowRight, ArrowUpRight, CalendarDays, MapPin } from "lucide-react"; import { DateBlock, HourRuler, Kind, LiveMark } from "@/components/event-parts"; import { CategoryChip, EventPoster } from "@/components/event-poster"; import { buttonVariants } from "@/components/ui/button"; -import { useT } from "@/i18n"; +import { useLocale, useT } from "@/i18n"; import { isLive, type Category, type EventSummary } from "@/lib/events"; +import { categoryName } from "@/lib/category-name"; import { formatDateRange, formatTime } from "@/lib/format"; import { colourwayOf } from "@/lib/poster"; import { cn } from "cn"; @@ -125,6 +126,7 @@ export function Ledger({ events }: { events: EventSummary[] }) { * colour on hover and focus, the colour the category's posters wear everywhere else. */ export function KindIndex({ categories }: { categories: Category[] }) { + const locale = useLocale(); return (