ui: expose i18n via window, add cache-busting query strings
This commit is contained in:
BIN
.gitignore
vendored
BIN
.gitignore
vendored
Binary file not shown.
@@ -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 ||
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user