From 49fdf5e7f414d946491fbd9cc427dd29282dcb58 Mon Sep 17 00:00:00 2001 From: DD Date: Wed, 3 Jun 2026 21:21:24 +0800 Subject: [PATCH 1/2] fix: translateIfKey broke plugin config labels by treating plain text as i18n keys --- dashboard/src/composables/useConfigTextResolver.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dashboard/src/composables/useConfigTextResolver.js b/dashboard/src/composables/useConfigTextResolver.js index 757b724bcc..77201feb5b 100644 --- a/dashboard/src/composables/useConfigTextResolver.js +++ b/dashboard/src/composables/useConfigTextResolver.js @@ -7,7 +7,8 @@ export function useConfigTextResolver(props = {}) { const translateIfKey = (value) => { if (!value || typeof value !== 'string') return value - return getRaw(value) ? tm(value) : value + if (!value.includes('.')) return value + return getRaw(value) ? tm(value) : null } const hasPluginI18n = () => { From 00c04849f70350aca7ed6d4b8a30bf21ab13472e Mon Sep 17 00:00:00 2001 From: DDomelette <86914232+DDomelette@users.noreply.github.com> Date: Thu, 4 Jun 2026 09:37:22 +0800 Subject: [PATCH 2/2] fix: return original value instead of null for non-i18n key strings containing dots --- dashboard/src/composables/useConfigTextResolver.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboard/src/composables/useConfigTextResolver.js b/dashboard/src/composables/useConfigTextResolver.js index 77201feb5b..7e1c7390bb 100644 --- a/dashboard/src/composables/useConfigTextResolver.js +++ b/dashboard/src/composables/useConfigTextResolver.js @@ -8,7 +8,7 @@ export function useConfigTextResolver(props = {}) { const translateIfKey = (value) => { if (!value || typeof value !== 'string') return value if (!value.includes('.')) return value - return getRaw(value) ? tm(value) : null + return getRaw(value) ? tm(value) : value } const hasPluginI18n = () => {