feat: implement initial language resolution for SSR and local storage support

- Added a function to determine the initial language based on server-side rendering and local storage.
- Updated i18n initialization to use the resolved initial language instead of the default.
This commit is contained in:
2026-05-25 14:54:31 +08:00
parent 9bd7cc9b9e
commit 3649bb9300
8 changed files with 70 additions and 7 deletions

View File

@@ -1159,7 +1159,7 @@ export function HallBettingGrid({ drawLive }: { drawLive: HallDrawLiveSnapshot }
<th key={column.key} className="min-w-16 px-1 py-2 text-center font-bold">
<span className="block truncate">
{pickDisplayName(column.play)}
{column.digitSlot !== undefined
{column.digitSlot !== undefined && activeCategory !== "JACKPOT"
? `-${digitSlotLabel(activeCategory, column.digitSlot)}`
: ""}
</span>