mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-24 06:32:12 -03:00
refactor(i18n): streamline i18n initialization and update translation methods
This commit is contained in:
@@ -4,7 +4,7 @@ import { state } from '../state/index.js';
|
||||
import { resetAndReload } from '../api/modelApiFactory.js';
|
||||
import { setStorageItem, getStorageItem } from '../utils/storageHelpers.js';
|
||||
import { DOWNLOAD_PATH_TEMPLATES, MAPPABLE_BASE_MODELS, PATH_TEMPLATE_PLACEHOLDERS, DEFAULT_PATH_TEMPLATES } from '../utils/constants.js';
|
||||
import { switchLanguage } from '../utils/i18nHelpers.js';
|
||||
// import { switchLanguage } from '../utils/i18nHelpers.js';
|
||||
|
||||
export class SettingsManager {
|
||||
constructor() {
|
||||
@@ -982,7 +982,7 @@ export class SettingsManager {
|
||||
}
|
||||
|
||||
// Switch language immediately
|
||||
switchLanguage(selectedLanguage);
|
||||
// switchLanguage(selectedLanguage);
|
||||
|
||||
showToast('Language changed successfully.', 'success');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user