ui: expose i18n via window, add cache-busting query strings

This commit is contained in:
user
2026-04-27 20:46:27 +09:00
parent f26600ec95
commit e9a58173b4
3 changed files with 5 additions and 5 deletions

BIN
.gitignore vendored

Binary file not shown.

View File

@@ -1,4 +1,4 @@
const i18n = { var i18n = {
ko: { ko: {
eyebrow: "튜터 플랫폼", eyebrow: "튜터 플랫폼",
titleLogin: "면접 연습", titleLogin: "면접 연습",
@@ -172,7 +172,7 @@ const i18n = {
}, },
}; };
function t(key, ...args) { window.t = function (key, ...args) {
const lang = const lang =
localStorage.getItem("tutor_lang") || localStorage.getItem("tutor_lang") ||
document.documentElement.lang || document.documentElement.lang ||
@@ -181,7 +181,7 @@ function t(key, ...args) {
return typeof text === "function" ? text(...args) : text; return typeof text === "function" ? text(...args) : text;
} }
function updateStaticText() { window.updateStaticText = function () {
const lang = const lang =
localStorage.getItem("tutor_lang") || localStorage.getItem("tutor_lang") ||
document.documentElement.lang || document.documentElement.lang ||

View File

@@ -230,7 +230,7 @@ Idempotent API retries need transactions. Cache invalidation uses TTL tradeoffs
</div> </div>
</aside> </aside>
</main> </main>
<script src="/assets/i18n.js"></script> <script src="/assets/i18n.js?v=2"></script>
<script src="/assets/app.js" type="module"></script> <script src="/assets/app.js?v=2" type="module"></script>
</body> </body>
</html> </html>