From 28a27447a582eef1d38132e77334171f4f156931 Mon Sep 17 00:00:00 2001 From: kangfenmao Date: Tue, 10 Dec 2024 20:36:37 +0800 Subject: [PATCH] feat: add new social media translations and links --- src/renderer/src/i18n/locales/en-us.json | 1 + src/renderer/src/i18n/locales/ru-ru.json | 1 + src/renderer/src/i18n/locales/zh-cn.json | 1 + src/renderer/src/i18n/locales/zh-tw.json | 1 + .../src/pages/settings/AboutSettings.tsx | 22 +++++++++++++++++-- 5 files changed, 24 insertions(+), 2 deletions(-) diff --git a/src/renderer/src/i18n/locales/en-us.json b/src/renderer/src/i18n/locales/en-us.json index 628b2232..792eb633 100644 --- a/src/renderer/src/i18n/locales/en-us.json +++ b/src/renderer/src/i18n/locales/en-us.json @@ -336,6 +336,7 @@ "about.updateNotAvailable": "You are using the latest version", "about.website.button": "Website", "about.website.title": "Official Website", + "about.social.title": "Social Accounts", "advanced.auto_switch_to_topics": "Auto switch to topic", "advanced.title": "Advanced Settings", "assistant": "Default Assistant", diff --git a/src/renderer/src/i18n/locales/ru-ru.json b/src/renderer/src/i18n/locales/ru-ru.json index e1d6e1a5..96e2f777 100644 --- a/src/renderer/src/i18n/locales/ru-ru.json +++ b/src/renderer/src/i18n/locales/ru-ru.json @@ -336,6 +336,7 @@ "about.updateNotAvailable": "Вы используете последнюю версию", "about.website.button": "Сайт", "about.website.title": "Официальный сайт", + "about.social.title": "Социальные аккаунты", "advanced.auto_switch_to_topics": "Автоматически переключаться на топик", "advanced.title": "Расширенные настройки", "assistant": "Ассистент по умолчанию", diff --git a/src/renderer/src/i18n/locales/zh-cn.json b/src/renderer/src/i18n/locales/zh-cn.json index cbec03d6..8a5b9dfa 100644 --- a/src/renderer/src/i18n/locales/zh-cn.json +++ b/src/renderer/src/i18n/locales/zh-cn.json @@ -336,6 +336,7 @@ "about.updateNotAvailable": "你的软件已是最新版本", "about.website.button": "查看", "about.website.title": "官方网站", + "about.social.title": "社交账号", "advanced.auto_switch_to_topics": "自动切换到话题", "advanced.title": "高级设置", "assistant": "默认助手", diff --git a/src/renderer/src/i18n/locales/zh-tw.json b/src/renderer/src/i18n/locales/zh-tw.json index defa9f3d..43f0e708 100644 --- a/src/renderer/src/i18n/locales/zh-tw.json +++ b/src/renderer/src/i18n/locales/zh-tw.json @@ -336,6 +336,7 @@ "about.updateNotAvailable": "您正在使用最新版本", "about.website.button": "網站", "about.website.title": "官方網站", + "about.social.title": "社交帳號", "advanced.auto_switch_to_topics": "自動切換到話題", "advanced.title": "進階設定", "assistant": "預設助手", diff --git a/src/renderer/src/pages/settings/AboutSettings.tsx b/src/renderer/src/pages/settings/AboutSettings.tsx index 09a1c1fc..e16fc165 100644 --- a/src/renderer/src/pages/settings/AboutSettings.tsx +++ b/src/renderer/src/pages/settings/AboutSettings.tsx @@ -1,5 +1,5 @@ -import { GithubOutlined } from '@ant-design/icons' -import { FileProtectOutlined, GlobalOutlined, MailOutlined, SoundOutlined } from '@ant-design/icons' +import { GithubOutlined, TwitterOutlined } from '@ant-design/icons' +import { FileProtectOutlined, GlobalOutlined, MailOutlined, SendOutlined, SoundOutlined } from '@ant-design/icons' import IndicatorLight from '@renderer/components/IndicatorLight' import { HStack } from '@renderer/components/Layout' import MinApp from '@renderer/components/MinApp' @@ -201,6 +201,24 @@ const AboutSettings: FC = () => { + + {t('settings.about.social.title')} + + + + X + + + + + + + + Telegram + + + + ) }