Update i18n.js

This commit is contained in:
Furrium Network authored and GitHub committed 2026-08-11 10:25:26 +08:00
1 parent a660d605c9
commit a6dcf461ec
1 file changed
+14 -1
+14 -1
View File
@@ -392,5 +392,18 @@ function applyTranslation() {
// 初始化 // 初始化
// ============================================================ // ============================================================
document.addEventListener('DOMContentLoaded', function() { document.addEventListener('DOMContentLoaded', function() {
setTimeout(applyTranslation, 200); // 先隐藏 body
document.body.style.opacity = '0';
setTimeout(function() {
// 加载论坛名称
if (typeof loadForumName === 'function') {
loadForumName();
}
// 翻译
applyTranslation();
// 淡入显示
document.body.style.transition = 'opacity 0.2s ease';
document.body.style.opacity = '1';
}, 200);
}); });