From 3d9eb5d73d524e75f600feb4799744280dc9564e Mon Sep 17 00:00:00 2001 From: Jinjing <6427696+AmethystLiang@users.noreply.github.com> Date: Fri, 11 Sep 2026 00:21:30 -0700 Subject: [PATCH] i18n: add Spanish translation for supported agents label Test updated to verify Spanish translation 'Agentes compatibles:' is available and used when locale is set to Spanish. --- .../settings/NativeChatSupportedAgents.test.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/renderer/src/components/settings/NativeChatSupportedAgents.test.tsx b/src/renderer/src/components/settings/NativeChatSupportedAgents.test.tsx index e18f9ed2d42..cb205b25f80 100644 --- a/src/renderer/src/components/settings/NativeChatSupportedAgents.test.tsx +++ b/src/renderer/src/components/settings/NativeChatSupportedAgents.test.tsx @@ -82,12 +82,14 @@ describe('NativeChatSupportedAgents', () => { expect(value).toBe('Supported agents:') }) - it('renders the English fallback when the active locale lacks the label key', async () => { + it('renders the Spanish label when the active locale provides it', async () => { await i18n.changeLanguage('es') - expect(i18n.getResource('es', 'translation', SUPPORTED_AGENTS_LABEL_KEY)).toBeUndefined() + expect(i18n.getResource('es', 'translation', SUPPORTED_AGENTS_LABEL_KEY)).toBe( + 'Agentes compatibles:' + ) const markup = renderToStaticMarkup() - expect(markup).toContain('Supported agents:') + expect(markup).toContain('Agentes compatibles:') }) })