feat(dashboard): GameText, the game's text in the viewer's language

One helper for game text on the dashboard: zone names, locale phrases,
localized table columns, %[key] expansion and the game's currency words,
looked up in the viewer's language (a cookie pick, else Accept-Language),
falling back to en_US and then the key or id. Unit tested.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Aaron Kimbrell
2026-09-29 22:06:10 -05:00
parent 40d9364770
commit a6fc67a4bb
5 changed files with 445 additions and 0 deletions

View File

@@ -36,6 +36,8 @@ set(DWEBTESTS_SOURCES
"ModeratorHelperTests.cpp"
"ChatHistoryTests.cpp"
"ClientSysInfoViewTests.cpp"
"GameTextTests.cpp"
"${PROJECT_SOURCE_DIR}/dDashboardServer/routes/GameText.cpp"
"${PROJECT_SOURCE_DIR}/dDashboardServer/routes/ClientSysInfoView.cpp"
"${PROJECT_SOURCE_DIR}/dDashboardServer/routes/ChatHistory.cpp"
"${PROJECT_SOURCE_DIR}/dDashboardServer/ai/ClaudeClient.cpp"