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: {
|
||||
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 ||
|
||||
|
||||
@@ -230,7 +230,7 @@ Idempotent API retries need transactions. Cache invalidation uses TTL tradeoffs
|
||||
</div>
|
||||
</aside>
|
||||
</main>
|
||||
<script src="/assets/i18n.js"></script>
|
||||
<script src="/assets/app.js" type="module"></script>
|
||||
<script src="/assets/i18n.js?v=2"></script>
|
||||
<script src="/assets/app.js?v=2" type="module"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user