From 35e54bc1dde50ee690280ffc2489f1aaccec76ae Mon Sep 17 00:00:00 2001 From: Dexter Chien Date: Fri, 6 Mar 2026 22:52:05 -0800 Subject: [PATCH] feat(i18n): replace hardcoded upload strings in FeedCreateModal with i18n keys Three strings in the file attachment label were hardcoded in English: - "Uploading..." (shown while upload is in progress) - "Select file" (shown when a connector is available) - "Connect to upload" (shown when no connector is available) `createModal.selectFile` already existed in all four locales but was not being used. Added the two missing keys (`uploading`, `connectToUpload`) to en, zh-CN, ja, and ko locale files, then replaced all three hardcoded strings with `t()` calls. Made-with: Cursor --- studio/src/components/feed/FeedCreateModal.tsx | 8 ++++---- studio/src/i18n/locales/en/feed.json | 2 ++ studio/src/i18n/locales/ja/feed.json | 2 ++ studio/src/i18n/locales/ko/feed.json | 2 ++ studio/src/i18n/locales/zh-CN/feed.json | 2 ++ 5 files changed, 12 insertions(+), 4 deletions(-) diff --git a/studio/src/components/feed/FeedCreateModal.tsx b/studio/src/components/feed/FeedCreateModal.tsx index 6d5600725..debf2c3d3 100644 --- a/studio/src/components/feed/FeedCreateModal.tsx +++ b/studio/src/components/feed/FeedCreateModal.tsx @@ -422,14 +422,14 @@ const FeedCreateModal: React.FC = ({ : "bg-indigo-600 hover:bg-indigo-500" }`} title={ - connector ? "Upload attachment" : "Connect to an agent to upload" + connector ? t('createModal.uploadFiles') : t('createModal.connectToUpload') } > {uploading - ? "Uploading..." + ? t('createModal.uploading') : connector - ? "Select file" - : "Connect to upload"} + ? t('createModal.selectFile') + : t('createModal.connectToUpload')}