Switch non-Simplified contact link to Discord
This commit is contained in:
1 parent
21b3f85dca
commit
9a84ed2610
4 files changed
+11
-6
No files matched your search
+5
-2
@@ -37,7 +37,8 @@ import { canOpenAppPage, isAlwaysAvailablePage } from './navigation';
|
||||
import { useThemePreference } from './theme';
|
||||
import { useDialogFocusTrap } from './components/useDialogFocusTrap';
|
||||
|
||||
const CONTACT_URL = 'https://qm.qq.com/q/3queDaIG';
|
||||
const QQ_CONTACT_URL = 'https://qm.qq.com/q/3queDaIG';
|
||||
const DISCORD_SERVER_URL = 'https://discord.gg/PxvX4D9kgs';
|
||||
|
||||
const pages = [
|
||||
{
|
||||
@@ -250,7 +251,9 @@ function AppContent() {
|
||||
|
||||
const openContact = async () => {
|
||||
try {
|
||||
await invoke('open_external_url', { url: CONTACT_URL });
|
||||
await invoke('open_external_url', {
|
||||
url: locale === 'zh-CN' ? QQ_CONTACT_URL : DISCORD_SERVER_URL,
|
||||
});
|
||||
} catch (error) {
|
||||
console.error('Failed to open the contact link', error);
|
||||
}
|
||||
|
||||
+2
-2
@@ -335,8 +335,8 @@ export const jaOverrides = {
|
||||
'app.nav.lockedHint': 'まずホームでコアサービスを起動してください',
|
||||
'app.coreRequired.title': '先にコアを起動してください',
|
||||
'app.coreRequired.description': '設定、OAuth、API 接続などを使用するには CPA コアを起動してください。',
|
||||
'app.contact.title': 'QQ でお問い合わせ',
|
||||
'app.contact.label': 'お問い合わせ',
|
||||
'app.contact.title': 'Discord サーバーに参加',
|
||||
'app.contact.label': 'Discord サーバーに参加',
|
||||
'app.close.title': '次の操作を選択してください',
|
||||
'app.close.description': 'アプリを終了するか、EasyCLIProxyAPI をシステムトレイで実行し続けることができます。',
|
||||
'app.close.minimizing': '最小化しています...',
|
||||
|
||||
@@ -284,8 +284,8 @@ export const en: Record<MessageKey, string> = {
|
||||
'app.nav.lockedHint': 'Please start the core service on Home first',
|
||||
'app.coreRequired.title': 'Start the core first',
|
||||
'app.coreRequired.description': 'Start the CPA core to use settings, OAuth, API access, and other features.',
|
||||
'app.contact.title': 'Contact us on QQ',
|
||||
'app.contact.label': 'Contact Us',
|
||||
'app.contact.title': 'Join our Discord server',
|
||||
'app.contact.label': 'Join Discord Server',
|
||||
'app.close.title': 'What would you like to do?',
|
||||
'app.close.description': 'Exit the app, or keep EasyCLIProxyAPI running in the system tray.',
|
||||
'app.close.minimizing': 'Minimizing...',
|
||||
|
||||
@@ -9,6 +9,8 @@ export type MessageVariables = Record<string, string | number>;
|
||||
|
||||
export const zhTW: Record<MessageKey, string> = {
|
||||
...createTraditionalMessages(zhCN),
|
||||
'app.contact.title': '加入 Discord 伺服器',
|
||||
'app.contact.label': '加入 Discord 伺服器',
|
||||
'config.diagnostics.description': '啟用後將記錄呼叫出錯的請求,成功的請求不會記錄,請及時關閉「**寫入日誌檔案**」,避免占用過多儲存空間。',
|
||||
'appUpdate.notes.title': '軟體更新說明',
|
||||
'appUpdate.notes.expand': '展開',
|
||||
|
||||
Reference in new issue
Block a user