diff --git a/webview-ui/src/components/chat/Announcement.tsx b/webview-ui/src/components/chat/Announcement.tsx index b7f60014dd..67bead5328 100644 --- a/webview-ui/src/components/chat/Announcement.tsx +++ b/webview-ui/src/components/chat/Announcement.tsx @@ -9,73 +9,58 @@ interface AnnouncementProps { } const Announcement = ({ version, hideAnnouncement }: AnnouncementProps) => { - const { t } = useTranslation("translation", { keyPrefix: "announcement", useSuspense: false }) + const { t, ready } = useTranslation("translation", { keyPrefix: "announcement", useSuspense: false }) + + const newChangesList = t("newChangesList", { returnObjects: true }) as Array const minorVersion = version.split(".").slice(0, 2).join(".") // 2.0.0 -> 2.0 return ( -
- - - -

{t("newInVersion", { version: minorVersion })}

- -

- - {t("seeDemo")} - + ready && (
-

- , - RedditLink: , + backgroundColor: "var(--vscode-editor-inactiveSelectionBackground)", + borderRadius: "3px", + padding: "12px 16px", + margin: "5px 15px 5px 15px", + position: "relative", + flexShrink: 0, + }}> + + + +

{t("newInVersion", { version: minorVersion })}

+
    + {newChangesList.map((transcluded, index) => ( + , + }}> + {transcluded} + + ))} +
+
-

-
+

+ , + RedditLink: , + }} + /> +

+
+ ) ) } diff --git a/webview-ui/src/i18n.ts b/webview-ui/src/i18n.ts index 0b6716fa43..bcc68a1080 100644 --- a/webview-ui/src/i18n.ts +++ b/webview-ui/src/i18n.ts @@ -11,6 +11,11 @@ i18n.use(initReactI18next) // passes i18n down to react-i18next .init({ fallbackLng: "en", debug: true, + react: { + bindI18n: "languageChanged", + transSupportBasicHtmlNodes: true, + transKeepBasicHtmlNodesFor: ["b", "i", "strong", "em"], + }, }) i18n.addResourceBundle("de", "translation", translationDE) diff --git a/webview-ui/src/locales/de/translation.json b/webview-ui/src/locales/de/translation.json index e1273840fe..4fa93e3838 100644 --- a/webview-ui/src/locales/de/translation.json +++ b/webview-ui/src/locales/de/translation.json @@ -1,16 +1,14 @@ { "announcement": { - "newInVersion": "Neu in Version {{version}}", - "checkpointsTitle": "Checkpunkte", - "checkpointsDescription": "Erstellen Sie Checkpunkte, um den Fortschritt zu speichern.", - "compareTitle": "Vergleichen", - "compareDescription": "Vergleichen Sie Änderungen zwischen Checkpunkten.", - "restoreTitle": "Wiederherstellen", - "restoreDescription": "Stellen Sie frühere Versionen wieder her.", - "seeNewChangesTitle": "Neue Änderungen anzeigen", - "seeNewChangesDescription": "Sehen Sie sich die neuesten Änderungen an.", - "seeDemo": "Demo ansehen", - "joinOurCommunities": "Tritt unserem Discord oder Reddit bei für weitere Updates!" + "newInVersion": "New in version {{version}}", + "newChangesList": [ + "Plan/Act mode toggle: Plan mode lets Cline focus on gathering information, asking clarifying questions, brainstorm ideas, and architect a solution. Switch back to Act mode to let him execute the plan!", + "Quick API/model switching with a new popup menu under the chat field", + "VS Code LM API lets you use models from other extensions like GitHub Copilot", + "MCP server improvements: On/off toggle to disable servers when not in use, and Auto-approve option for individual tools", + "In case you missed it, Cline now supports Checkpoints! See it in action here." + ], + "joinOurCommunities": "Join our Discord or Reddit for more updates!" }, "settingsView": { "settings": "Einstellungen", diff --git a/webview-ui/src/locales/en/translation.json b/webview-ui/src/locales/en/translation.json index 91a326ed3a..16b97d4bc7 100644 --- a/webview-ui/src/locales/en/translation.json +++ b/webview-ui/src/locales/en/translation.json @@ -1,15 +1,13 @@ { "announcement": { "newInVersion": "New in version {{version}}", - "checkpointsTitle": "Checkpoints", - "checkpointsDescription": "Create checkpoints to save progress.", - "compareTitle": "Compare", - "compareDescription": "Compare changes between checkpoints.", - "restoreTitle": "Restore", - "restoreDescription": "Restore previous versions.", - "seeNewChangesTitle": "See new changes", - "seeNewChangesDescription": "View the latest changes.", - "seeDemo": "See demo", + "newChangesList": [ + "Plan/Act mode toggle: Plan mode lets Cline focus on gathering information, asking clarifying questions, brainstorm ideas, and architect a solution. Switch back to Act mode to let him execute the plan!", + "Quick API/model switching with a new popup menu under the chat field", + "VS Code LM API lets you use models from other extensions like GitHub Copilot", + "MCP server improvements: On/off toggle to disable servers when not in use, and Auto-approve option for individual tools", + "In case you missed it, Cline now supports Checkpoints! See it in action here." + ], "joinOurCommunities": "Join our Discord or Reddit for more updates!" }, "settingsView": { diff --git a/webview-ui/src/locales/ja/translation.json b/webview-ui/src/locales/ja/translation.json index 52b2e6fa1b..1780c76797 100644 --- a/webview-ui/src/locales/ja/translation.json +++ b/webview-ui/src/locales/ja/translation.json @@ -7,8 +7,7 @@ "compareDescription": "チェックポイント間の変更を比較します。", "restoreTitle": "復元", "restoreDescription": "以前のバージョンを復元します。", - "seeNewChangesTitle": "新しい変更を見る", - "seeNewChangesDescription": "最新の変更を表示します。", + "seeNewChanges": "見逃した場合、Clineは現在チェックポイントをサポートしています! ここでアクションを確認してください。", "seeDemo": "デモを見る", "joinOurCommunities": "最新情報を入手するには、私たちの Discord または Reddit に参加してください!" }, diff --git a/webview-ui/src/locales/zh-cn/translation.json b/webview-ui/src/locales/zh-cn/translation.json index fee947f8d3..db9aa92bee 100644 --- a/webview-ui/src/locales/zh-cn/translation.json +++ b/webview-ui/src/locales/zh-cn/translation.json @@ -7,8 +7,7 @@ "compareDescription": "比较检查点之间的更改。", "restoreTitle": "恢复", "restoreDescription": "恢复以前的版本。", - "seeNewChangesTitle": "查看新更改", - "seeNewChangesDescription": "查看最新更改。", + "seeNewChanges": "如果您错过了,Cline 现在支持检查点!在这里查看操作。", "seeDemo": "查看演示", "joinOur": "加入我们的", "joinOurCommunities": "加入我们的 DiscordReddit 以获取更多更新。" diff --git a/webview-ui/src/locales/zh-tw/translation.json b/webview-ui/src/locales/zh-tw/translation.json index 2dc8a9a8e7..92ded11703 100644 --- a/webview-ui/src/locales/zh-tw/translation.json +++ b/webview-ui/src/locales/zh-tw/translation.json @@ -1,17 +1,14 @@ { "announcement": { "newInVersion": "版本 {{version}} 中的新功能", - "checkpointsTitle": "檢查點", - "checkpointsDescription": "創建檢查點以保存進度。", - "compareTitle": "比較", - "compareDescription": "比較檢查點之間的更改。", - "restoreTitle": "恢復", - "restoreDescription": "恢復以前的版本。", - "seeNewChangesTitle": "查看新更改", - "seeNewChangesDescription": "查看最新更改。", - "seeDemo": "查看演示", - "joinOur": "加入我們的", - "joinOurCommunities": "加入我們的 DiscordReddit 以獲取更多更新。" + "newChangesList": [ + "計劃/執行模式切換: 計劃模式讓 Cline 專注於收集信息、提出澄清問題、頭腦風暴和架構解決方案。切換回執行模式,讓他執行計劃!", + "快速 API/模型切換,在聊天字段下有一個新的彈出菜單", + "VS Code LM API 允許您使用其他擴展中的模型,如 GitHub Copilot", + "MCP 伺服器改進: 開/關切換以在不使用時禁用伺服器,並為單個工具提供自動批准選項", + "如果您錯過了,Cline 現在支持檢查點!在這裡查看。" + ], + "joinOurCommunities": "加入我們的 DiscordReddit 獲取更多更新!" }, "settingsView": { "settings": "設置",