Skip to content

🙌 OpenHands: AI-Driven Development

refactor(frontend): update the not found message displayed when no repositories match the search query (#11187)

Hiep Led57462e8ca5a
diff --git a/frontend/src/components/features/home/git-repo-dropdown/git-repo-dropdown.tsx b/frontend/src/components/features/home/git-repo-dropdown/git-repo-dropdown.tsx
index 00f6c465fc..af480ce7ab 100644
--- a/frontend/src/components/features/home/git-repo-dropdown/git-repo-dropdown.tsx
+++ b/frontend/src/components/features/home/git-repo-dropdown/git-repo-dropdown.tsx
@@ -251,7 +251,7 @@ export function GitRepoDropdown({
const renderEmptyState = (emptyInputValue: string) => (
<EmptyState
inputValue={emptyInputValue}
- searchMessage={t(I18nKey.MICROAGENT$NO_REPOSITORY_FOUND)}
+ searchMessage={t(I18nKey.HOME$NO_REPOSITORY_FOUND)}
emptyMessage={t(I18nKey.COMMON$NO_REPOSITORY)}
testId="git-repo-dropdown-empty"
/>
diff --git a/frontend/src/i18n/declaration.ts b/frontend/src/i18n/declaration.ts
index 604157079f..345216b5a7 100644
--- a/frontend/src/i18n/declaration.ts
+++ b/frontend/src/i18n/declaration.ts
@@ -916,4 +916,5 @@ export enum I18nKey {
COMMON$START_RUNTIME = "COMMON$START_RUNTIME",
COMMON$JUPYTER_EMPTY_MESSAGE = "COMMON$JUPYTER_EMPTY_MESSAGE",
COMMON$CONFIRMATION_MODE_ENABLED = "COMMON$CONFIRMATION_MODE_ENABLED",
+ HOME$NO_REPOSITORY_FOUND = "HOME$NO_REPOSITORY_FOUND",
}
diff --git a/frontend/src/i18n/translation.json b/frontend/src/i18n/translation.json
index d11dbf4ae4..76e5538117 100644
--- a/frontend/src/i18n/translation.json
+++ b/frontend/src/i18n/translation.json
@@ -14654,5 +14654,21 @@
"tr": "Onay modu etkinleştirildi",
"de": "Bestätigungsmodus aktiviert",
"uk": "Режим підтвердження увімкнено"
+ },
+ "HOME$NO_REPOSITORY_FOUND": {
+ "en": "No repository found to launch conversation",
+ "ja": "会話を開始するためのリポジトリが見つかりません",
+ "zh-CN": "未找到用于启动会话的存储库",
+ "zh-TW": "未找到用於啟動對話的存儲庫",
+ "ko-KR": "대화를 시작할 저장소를 찾을 수 없습니다",
+ "no": "Ingen repository funnet for å starte samtale",
+ "it": "Nessun repository trovato per avviare la conversazione",
+ "pt": "Nenhum repositório encontrado para iniciar a conversa",
+ "es": "No se encontró ningún repositorio para iniciar la conversación",
+ "ar": "لم يتم العثور على مستودع لبدء المحادثة",
+ "fr": "Aucun dépôt trouvé pour lancer la conversation",
+ "tr": "Konuşma başlatmak için depo bulunamadı",
+ "de": "Kein Repository gefunden, um das Gespräch zu starten",
+ "uk": "Не знайдено репозиторій для запуску розмови"
}
}