mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-21 21:22:11 -03:00
feat(localization): add file size labels and enhance search placeholders in UI components
This commit is contained in:
@@ -28,6 +28,14 @@
|
||||
"korean": "한국어",
|
||||
"french": "Français",
|
||||
"spanish": "Español"
|
||||
},
|
||||
"fileSize": {
|
||||
"zero": "0 Bytes",
|
||||
"bytes": "Bytes",
|
||||
"kb": "KB",
|
||||
"mb": "MB",
|
||||
"gb": "GB",
|
||||
"tb": "TB"
|
||||
}
|
||||
},
|
||||
"modelCard": {
|
||||
@@ -74,8 +82,15 @@
|
||||
},
|
||||
"search": {
|
||||
"placeholder": "Search...",
|
||||
"placeholders": {
|
||||
"loras": "Search LoRAs...",
|
||||
"recipes": "Search recipes...",
|
||||
"checkpoints": "Search checkpoints...",
|
||||
"embeddings": "Search embeddings..."
|
||||
},
|
||||
"options": "Search Options",
|
||||
"searchIn": "Search In:",
|
||||
"notAvailable": "Search not available on statistics page",
|
||||
"filters": {
|
||||
"filename": "Filename",
|
||||
"modelname": "Model Name",
|
||||
@@ -93,7 +108,10 @@
|
||||
"clearAll": "Clear All Filters"
|
||||
},
|
||||
"theme": {
|
||||
"toggle": "Toggle theme"
|
||||
"toggle": "Toggle theme",
|
||||
"switchToLight": "Switch to light theme",
|
||||
"switchToDark": "Switch to dark theme",
|
||||
"switchToAuto": "Switch to auto theme"
|
||||
},
|
||||
"actions": {
|
||||
"checkUpdates": "Check Updates",
|
||||
@@ -165,7 +183,10 @@
|
||||
"recipes": {
|
||||
"title": "LoRA Recipes",
|
||||
"controls": {
|
||||
"import": "Import Recipe",
|
||||
"import": {
|
||||
"action": "Import Recipe",
|
||||
"title": "Import a recipe from image or URL"
|
||||
},
|
||||
"refresh": {
|
||||
"title": "Refresh recipe list"
|
||||
},
|
||||
@@ -691,6 +712,7 @@
|
||||
"cacheClearError": "Error clearing cache: {message}"
|
||||
},
|
||||
"filters": {
|
||||
"applied": "{message}",
|
||||
"cleared": "Filters cleared"
|
||||
},
|
||||
"downloads": {
|
||||
|
||||
@@ -282,7 +282,7 @@ export class FilterManager {
|
||||
message = `Filtering by ${tagsCount} tag${tagsCount > 1 ? 's' : ''}`;
|
||||
}
|
||||
|
||||
showToast('filters.applied', { message }, 'success');
|
||||
showToast('toast.filters.applied', { message }, 'success');
|
||||
}
|
||||
} else {
|
||||
this.filterButton.classList.remove('active');
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
<button onclick="recipeManager.refreshRecipes()"><i class="fas fa-sync"></i> {{ t('common.actions.refresh') }}</button>
|
||||
</div>
|
||||
<div title="{{ t('recipes.controls.import.title') }}" class="control-group">
|
||||
<button onclick="importManager.showImportModal()"><i class="fas fa-file-import"></i> {{ t('recipes.controls.import') }}</button>
|
||||
<button onclick="importManager.showImportModal()"><i class="fas fa-file-import"></i> {{ t('recipes.controls.import.action') }}</button>
|
||||
</div>
|
||||
<!-- Add duplicate detection button -->
|
||||
<div title="{{ t('loras.controls.duplicates') }}" class="control-group">
|
||||
|
||||
@@ -253,7 +253,7 @@ def test_static_code_analysis():
|
||||
'checkpoint', 'civitai_api_key', 'div', 'embedding', 'lora', 'show_only_sfw',
|
||||
'model', 'type', 'name', 'value', 'id', 'class', 'style', 'src', 'href',
|
||||
'data', 'width', 'height', 'size', 'format', 'version', 'url', 'path',
|
||||
'file', 'folder', 'image', 'text', 'number', 'boolean', 'array', 'object'
|
||||
'file', 'folder', 'image', 'text', 'number', 'boolean', 'array', 'object', 'non.existent.key'
|
||||
}
|
||||
|
||||
# Extract keys from JavaScript files
|
||||
|
||||
Reference in New Issue
Block a user