From ab96fec96e9ab15c0533a552248741037ec70912 Mon Sep 17 00:00:00 2001 From: AustinMroz Date: Tue, 3 Feb 2026 11:02:49 -0800 Subject: [PATCH] [backport cloud/1.38] fix: localize node definition filter names and descriptions (#8563) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Backport of #8540 to cloud/1.38 Does not include dev-node changes since that has not been backported. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-8563-backport-cloud-1-38-fix-localize-node-definition-filter-names-and-descriptions-2fc6d73d36508171b11cfa01d522438b) by [Unito](https://www.unito.io) Co-authored-by: Christian Byrne --- src/stores/nodeDefStore.ts | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/stores/nodeDefStore.ts b/src/stores/nodeDefStore.ts index 217b784ca2..44677b1f5d 100644 --- a/src/stores/nodeDefStore.ts +++ b/src/stores/nodeDefStore.ts @@ -3,6 +3,7 @@ import _ from 'es-toolkit/compat' import { defineStore } from 'pinia' import { computed, ref } from 'vue' +import { t } from '@/i18n' import { isProxyWidget } from '@/core/graph/subgraph/proxyWidget' import type { LGraphNode } from '@/lib/litegraph/src/litegraph' import { transformNodeDefV1ToV2 } from '@/schemas/nodeDef/migration' @@ -408,17 +409,16 @@ export const useNodeDefStore = defineStore('nodeDef', () => { // Deprecated nodes filter registerNodeDefFilter({ id: 'core.deprecated', - name: 'Hide Deprecated Nodes', - description: 'Hides nodes marked as deprecated unless explicitly enabled', + name: t('nodeFilters.hideDeprecated'), + description: t('nodeFilters.hideDeprecatedDescription'), predicate: (nodeDef) => showDeprecated.value || !nodeDef.deprecated }) // Experimental nodes filter registerNodeDefFilter({ id: 'core.experimental', - name: 'Hide Experimental Nodes', - description: - 'Hides nodes marked as experimental unless explicitly enabled', + name: t('nodeFilters.hideExperimental'), + description: t('nodeFilters.hideExperimentalDescription'), predicate: (nodeDef) => showExperimental.value || !nodeDef.experimental }) @@ -426,9 +426,8 @@ export const useNodeDefStore = defineStore('nodeDef', () => { // Filter out litegraph typed subgraphs, saved blueprints are added in separately registerNodeDefFilter({ id: 'core.subgraph', - name: 'Hide Subgraph Nodes', - description: - 'Temporarily hides subgraph nodes from node library and search', + name: t('nodeFilters.hideSubgraph'), + description: t('nodeFilters.hideSubgraphDescription'), predicate: (nodeDef) => { // Hide subgraph nodes (identified by category='subgraph' and python_module='nodes') return !(