From e9a58173b4f20f238274d7d60e991fe74a575520 Mon Sep 17 00:00:00 2001 From: user Date: Mon, 27 Apr 2026 20:46:27 +0900 Subject: [PATCH] ui: expose i18n via window, add cache-busting query strings --- .gitignore | Bin 32 -> 194 bytes internal/webapp/static/i18n.js | 6 +++--- internal/webapp/static/index.html | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index e7b5d5a17275d5a7e0830070113313f439d69f31..c0a466536f2b886ba5bfa3b3bedecec1dfaf118f 100644 GIT binary patch literal 194 zcmZvVOA3H63`A!wco9K8QW2@2g|=8LdV61sAcBiDoynV|am(2jjjUE3DpjabQYV$v zPG96@@-OhV*$?WqF-y6iNsfuhS&uV5*@)}lYIW?GKbsG-8{VLcWT(VV5FY)1*>K51 IMVObn0p&9x`Tzg` delta 5 McmX@as4zhR00naalmGw# diff --git a/internal/webapp/static/i18n.js b/internal/webapp/static/i18n.js index d00b5d4..ecc3e65 100644 --- a/internal/webapp/static/i18n.js +++ b/internal/webapp/static/i18n.js @@ -1,4 +1,4 @@ -const i18n = { +var i18n = { ko: { eyebrow: "튜터 플랫폼", titleLogin: "면접 연습", @@ -172,7 +172,7 @@ const i18n = { }, }; -function t(key, ...args) { +window.t = function (key, ...args) { const lang = localStorage.getItem("tutor_lang") || document.documentElement.lang || @@ -181,7 +181,7 @@ function t(key, ...args) { return typeof text === "function" ? text(...args) : text; } -function updateStaticText() { +window.updateStaticText = function () { const lang = localStorage.getItem("tutor_lang") || document.documentElement.lang || diff --git a/internal/webapp/static/index.html b/internal/webapp/static/index.html index 4a4dbe9..5eb93f0 100644 --- a/internal/webapp/static/index.html +++ b/internal/webapp/static/index.html @@ -230,7 +230,7 @@ Idempotent API retries need transactions. Cache invalidation uses TTL tradeoffs - - + +