Add Korean, Russian, and Traditional Chinese translations for LoRA Manager

This commit is contained in:
Will Miao
2025-08-30 11:32:39 +08:00
parent ff4d0f0208
commit 3c9e402bc0
18 changed files with 3141 additions and 26 deletions

View File

@@ -50,6 +50,12 @@
</script>
<script>
(function() {
// 直接从后端获取语言设置,避免闪烁
const userLanguage = '{{ user_language or "en" }}';
// 设置初始语言到全局变量供i18n系统使用
window.__INITIAL_LANGUAGE__ = userLanguage;
// Apply theme immediately based on stored preference
const STORAGE_PREFIX = 'lora_manager_';
const savedTheme = localStorage.getItem(STORAGE_PREFIX + 'theme') || 'auto';