Skip to content

🙌 OpenHands: AI-Driven Development

Change title of button to start new conversation (#7464)

mamoodiea0fcd6002ab
diff --git a/frontend/src/components/features/conversation-panel/new-conversation-button.tsx b/frontend/src/components/features/conversation-panel/new-conversation-button.tsx
deleted file mode 100644
index 6b391cca90..0000000000
--- a/frontend/src/components/features/conversation-panel/new-conversation-button.tsx
+++ /dev/null
@@ -1,20 +0,0 @@
-import { useTranslation } from "react-i18next";
-import { I18nKey } from "#/i18n/declaration";
-
-interface NewConversationButtonProps {
- onClick: () => void;
-}
-
-export function NewConversationButton({ onClick }: NewConversationButtonProps) {
- const { t } = useTranslation();
- return (
- <button
- data-testid="new-conversation-button"
- type="button"
- onClick={onClick}
- className="font-bold bg-[#4465DB] px-2 py-1 rounded"
- >
- + {t(I18nKey.PROJECT$NEW)}
- </button>
- );
-}
diff --git a/frontend/src/components/shared/buttons/exit-project-button.tsx b/frontend/src/components/shared/buttons/exit-project-button.tsx
index eaef96680a..33da4d934a 100644
--- a/frontend/src/components/shared/buttons/exit-project-button.tsx
+++ b/frontend/src/components/shared/buttons/exit-project-button.tsx
@@ -9,7 +9,7 @@ interface ExitProjectButtonProps {
export function ExitProjectButton({ onClick }: ExitProjectButtonProps) {
const { t } = useTranslation();
- const startNewProject = t(I18nKey.PROJECT$START_NEW);
+ const startNewProject = t(I18nKey.CONVERSATION$START_NEW);
return (
<TooltipButton
tooltip={startNewProject}
diff --git a/frontend/src/i18n/declaration.ts b/frontend/src/i18n/declaration.ts
index c93c283efa..d89e07332c 100644
--- a/frontend/src/i18n/declaration.ts
+++ b/frontend/src/i18n/declaration.ts
@@ -18,8 +18,7 @@ export enum I18nKey {
BROWSER$TITLE = "BROWSER$TITLE",
BROWSER$EMPTY_MESSAGE = "BROWSER$EMPTY_MESSAGE",
SETTINGS$TITLE = "SETTINGS$TITLE",
- PROJECT$START_NEW = "PROJECT$START_NEW",
- PROJECT$NEW = "PROJECT$NEW",
+ CONVERSATION$START_NEW = "CONVERSATION$START_NEW",
ACCOUNT_SETTINGS$TITLE = "ACCOUNT_SETTINGS$TITLE",
WORKSPACE$TITLE = "WORKSPACE$TITLE",
WORKSPACE$TERMINAL_TAB_LABEL = "WORKSPACE$TERMINAL_TAB_LABEL",
diff --git a/frontend/src/i18n/translation.json b/frontend/src/i18n/translation.json
index b5feee2294..f0a6c71577 100644
--- a/frontend/src/i18n/translation.json
+++ b/frontend/src/i18n/translation.json
@@ -271,35 +271,20 @@
"tr": "Ayarlar",
"de": "Einstellungen"
},
- "PROJECT$START_NEW": {
- "en": "Start new project",
- "ja": "新規プロジェクトを開始",
- "zh-CN": "开始新项目",
- "zh-TW": "開始新專案",
- "ko-KR": "새 프로젝트 시작",
- "no": "Start nytt prosjekt",
- "it": "Avvia nuovo progetto",
- "pt": "Iniciar novo projeto",
- "es": "Iniciar nuevo proyecto",
- "ar": "بدء مشروع جديد",
- "fr": "Démarrer un nouveau projet",
- "tr": "Yeni proje başlat",
- "de": "Neues Projekt starten"
- },
- "PROJECT$NEW": {
- "en": "New Project",
- "ja": "新規プロジェクト",
- "zh-CN": "新项目",
- "zh-TW": "新專案",
- "ko-KR": "새 프로젝트",
- "no": "Nytt prosjekt",
- "it": "Nuovo progetto",
- "pt": "Novo projeto",
- "es": "Nuevo proyecto",
- "ar": "مشروع جديد",
- "fr": "Nouveau projet",
- "tr": "Yeni proje",
- "de": "Neues Projekt"
+ "CONVERSATION$START_NEW": {
+ "en": "Start new conversation",
+ "ja": "新規会話を開始",
+ "zh-CN": "开始新对话",
+ "zh-TW": "開始新對話",
+ "ko-KR": "새 대화 시작",
+ "no": "Start ny samtale",
+ "it": "Avvia nuova conversazione",
+ "pt": "Iniciar nova conversa",
+ "es": "Iniciar nueva conversación",
+ "ar": "بدء محادثة جديدة",
+ "fr": "Démarrer une nouvelle conversation",
+ "tr": "Yeni sohbet başlat",
+ "de": "Neue Unterhaltung starten"
},
"ACCOUNT_SETTINGS$TITLE": {
"en": "Account Settings",