diff --git a/eslint.config.ts b/eslint.config.ts index 46a3d94d28..a720bb00a9 100644 --- a/eslint.config.ts +++ b/eslint.config.ts @@ -191,6 +191,19 @@ export default defineConfig([ '@intlify/vue-i18n/no-raw-text': [ 'error', { + attributes: { + '/.+/': [ + 'aria-label', + 'aria-placeholder', + 'aria-roledescription', + 'aria-valuetext', + 'label', + 'placeholder', + 'title', + 'v-tooltip' + ], + img: ['alt'] + }, // Ignore strings that are: // 1. Less than 2 characters // 2. Only symbols/numbers/whitespace (no letters) @@ -200,24 +213,27 @@ export default defineConfig([ ignoreNodes: ['md-icon', 'v-icon', 'pre', 'code', 'script', 'style'], // Brand names and technical terms that shouldn't be translated ignoreText: [ - 'ComfyUI', - 'GitHub', - 'OpenAI', 'API', - 'URL', - 'JSON', - 'YAML', - 'GPU', + 'App Data:', + 'App Path:', + 'ComfyUI', 'CPU', - 'RAM', + 'fps', 'GB', - 'MB', + 'GitHub', + 'GPU', + 'JSON', 'KB', + 'LoRA', + 'MB', 'ms', - 'fps', + 'OpenAI', + 'png', 'px', - 'App Data:', - 'App Path:' + 'RAM', + 'URL', + 'YAML', + '1.2 MB' ] } ] diff --git a/src/components/maskeditor/BrushSettingsPanel.vue b/src/components/maskeditor/BrushSettingsPanel.vue index 7f81359fc3..a43707ac1f 100644 --- a/src/components/maskeditor/BrushSettingsPanel.vue +++ b/src/components/maskeditor/BrushSettingsPanel.vue @@ -80,7 +80,7 @@ /> - preview + diff --git a/src/components/widget/SampleModelSelector.vue b/src/components/widget/SampleModelSelector.vue index 3f06ce2772..7f0147a3b8 100644 --- a/src/components/widget/SampleModelSelector.vue +++ b/src/components/widget/SampleModelSelector.vue @@ -30,7 +30,7 @@