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

View File

@@ -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 ||