feat(i18n): Add cherrycss.com link to custom CSS settings across locales
This commit is contained in:
parent
ff55739376
commit
516315ac45
@ -677,6 +677,7 @@
|
|||||||
},
|
},
|
||||||
"display.custom.css": "Custom CSS",
|
"display.custom.css": "Custom CSS",
|
||||||
"display.custom.css.placeholder": "/* Put custom CSS here */",
|
"display.custom.css.placeholder": "/* Put custom CSS here */",
|
||||||
|
"display.custom.css.cherrycss": "Get from cherrycss.com",
|
||||||
"display.minApp.disabled": "Hidden MinApp",
|
"display.minApp.disabled": "Hidden MinApp",
|
||||||
"display.minApp.empty": "Drag minApp from the left to hide them here",
|
"display.minApp.empty": "Drag minApp from the left to hide them here",
|
||||||
"display.minApp.title": "MinApp Settings",
|
"display.minApp.title": "MinApp Settings",
|
||||||
|
|||||||
@ -104,7 +104,7 @@
|
|||||||
"input.web_search.button.ok": "設定に移動",
|
"input.web_search.button.ok": "設定に移動",
|
||||||
"input.web_search.enable": "ウェブ検索を有効にする",
|
"input.web_search.enable": "ウェブ検索を有効にする",
|
||||||
"input.web_search.enable_content": "ウェブ検索を有効にするには、設定でウェブ検索を有効にする必要があります",
|
"input.web_search.enable_content": "ウェブ検索を有効にするには、設定でウェブ検索を有効にする必要があります",
|
||||||
"input.auto_resize": "高さを自動調整",
|
"input.auto_resize": "高さを自動調整",
|
||||||
"message.new.branch": "新しいブランチ",
|
"message.new.branch": "新しいブランチ",
|
||||||
"message.new.branch.created": "新しいブランチが作成されました",
|
"message.new.branch.created": "新しいブランチが作成されました",
|
||||||
"message.new.context": "新しいコンテキスト",
|
"message.new.context": "新しいコンテキスト",
|
||||||
@ -677,6 +677,7 @@
|
|||||||
},
|
},
|
||||||
"display.custom.css": "カスタムCSS",
|
"display.custom.css": "カスタムCSS",
|
||||||
"display.custom.css.placeholder": "/* ここにカスタムCSSを入力 */",
|
"display.custom.css.placeholder": "/* ここにカスタムCSSを入力 */",
|
||||||
|
"display.custom.css.cherrycss": "cherrycss.comから取得",
|
||||||
"display.minApp.disabled": "非表示ミニプログラム",
|
"display.minApp.disabled": "非表示ミニプログラム",
|
||||||
"display.minApp.empty": "非表示にしたいアプレットを左からここまでドラッグします",
|
"display.minApp.empty": "非表示にしたいアプレットを左からここまでドラッグします",
|
||||||
"display.minApp.title": "ミニプログラム表示設定",
|
"display.minApp.title": "ミニプログラム表示設定",
|
||||||
@ -926,4 +927,3 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -104,7 +104,7 @@
|
|||||||
"input.web_search.button.ok": "Перейти в Настройки",
|
"input.web_search.button.ok": "Перейти в Настройки",
|
||||||
"input.web_search.enable": "Включить веб-поиск",
|
"input.web_search.enable": "Включить веб-поиск",
|
||||||
"input.web_search.enable_content": "Необходимо включить веб-поиск в Настройки",
|
"input.web_search.enable_content": "Необходимо включить веб-поиск в Настройки",
|
||||||
"input.auto_resize": "Автоматическая высота",
|
"input.auto_resize": "Автоматическая высота",
|
||||||
"message.new.branch": "Новая ветка",
|
"message.new.branch": "Новая ветка",
|
||||||
"message.new.branch.created": "Новая ветка создана",
|
"message.new.branch.created": "Новая ветка создана",
|
||||||
"message.new.context": "Новый контекст",
|
"message.new.context": "Новый контекст",
|
||||||
@ -677,6 +677,7 @@
|
|||||||
},
|
},
|
||||||
"display.custom.css": "Пользовательский CSS",
|
"display.custom.css": "Пользовательский CSS",
|
||||||
"display.custom.css.placeholder": "/* Здесь введите пользовательский CSS */",
|
"display.custom.css.placeholder": "/* Здесь введите пользовательский CSS */",
|
||||||
|
"display.custom.css.cherrycss": "Получить из cherrycss.com",
|
||||||
"display.minApp.disabled": "скрытый апплет",
|
"display.minApp.disabled": "скрытый апплет",
|
||||||
"display.minApp.empty": "Перетащите апплет, который хотите скрыть, слева сюда",
|
"display.minApp.empty": "Перетащите апплет, который хотите скрыть, слева сюда",
|
||||||
"display.minApp.title": "Настройки отображения мини программы",
|
"display.minApp.title": "Настройки отображения мини программы",
|
||||||
|
|||||||
@ -677,6 +677,7 @@
|
|||||||
},
|
},
|
||||||
"display.custom.css": "自定义 CSS",
|
"display.custom.css": "自定义 CSS",
|
||||||
"display.custom.css.placeholder": "/* 这里写自定义CSS */",
|
"display.custom.css.placeholder": "/* 这里写自定义CSS */",
|
||||||
|
"display.custom.css.cherrycss": "从 cherrycss.com 获取",
|
||||||
"display.minApp.disabled": "隐藏的小程序",
|
"display.minApp.disabled": "隐藏的小程序",
|
||||||
"display.minApp.empty": "把要隐藏的小程序从左侧拖拽到这里",
|
"display.minApp.empty": "把要隐藏的小程序从左侧拖拽到这里",
|
||||||
"display.minApp.title": "小程序显示设置",
|
"display.minApp.title": "小程序显示设置",
|
||||||
|
|||||||
@ -104,7 +104,7 @@
|
|||||||
"input.web_search.button.ok": "去設定",
|
"input.web_search.button.ok": "去設定",
|
||||||
"input.web_search.enable": "開啟網路搜索",
|
"input.web_search.enable": "開啟網路搜索",
|
||||||
"input.web_search.enable_content": "需要先在設定中開啟網路搜索",
|
"input.web_search.enable_content": "需要先在設定中開啟網路搜索",
|
||||||
"input.auto_resize": "自動調整高度",
|
"input.auto_resize": "自動調整高度",
|
||||||
"message.new.branch": "分支",
|
"message.new.branch": "分支",
|
||||||
"message.new.branch.created": "新分支已建立",
|
"message.new.branch.created": "新分支已建立",
|
||||||
"message.new.context": "新上下文",
|
"message.new.context": "新上下文",
|
||||||
@ -677,6 +677,7 @@
|
|||||||
},
|
},
|
||||||
"display.custom.css": "自定義 CSS",
|
"display.custom.css": "自定義 CSS",
|
||||||
"display.custom.css.placeholder": "/* 這裡寫自定義 CSS */",
|
"display.custom.css.placeholder": "/* 這裡寫自定義 CSS */",
|
||||||
|
"display.custom.css.cherrycss": "從 cherrycss.com 獲取",
|
||||||
"display.minApp.disabled": "隱藏的小程序",
|
"display.minApp.disabled": "隱藏的小程序",
|
||||||
"display.minApp.empty": "把要隱藏的小程序從左側拖拽到這裡",
|
"display.minApp.empty": "把要隱藏的小程序從左側拖拽到這裡",
|
||||||
"display.minApp.title": "小程序顯示設定",
|
"display.minApp.title": "小程序顯示設定",
|
||||||
|
|||||||
@ -1,7 +1,5 @@
|
|||||||
import { SyncOutlined } from '@ant-design/icons'
|
import { SyncOutlined } from '@ant-design/icons'
|
||||||
import MinApp from '@renderer/components/MinApp'
|
|
||||||
import { isMac } from '@renderer/config/constant'
|
import { isMac } from '@renderer/config/constant'
|
||||||
import { AppLogo } from '@renderer/config/env'
|
|
||||||
import { DEFAULT_MIN_APPS } from '@renderer/config/minapps'
|
import { DEFAULT_MIN_APPS } from '@renderer/config/minapps'
|
||||||
import { useTheme } from '@renderer/context/ThemeProvider'
|
import { useTheme } from '@renderer/context/ThemeProvider'
|
||||||
import { useMinapps } from '@renderer/hooks/useMinapps'
|
import { useMinapps } from '@renderer/hooks/useMinapps'
|
||||||
@ -102,14 +100,7 @@ const DisplaySettings: FC = () => {
|
|||||||
],
|
],
|
||||||
[t]
|
[t]
|
||||||
)
|
)
|
||||||
const onOpenCherrycss = () => {
|
|
||||||
MinApp.start({
|
|
||||||
id: 'cherrycss',
|
|
||||||
name: 'Cherry Studio Theme Gallery',
|
|
||||||
url: 'https://cherrycss.com/',
|
|
||||||
logo: AppLogo
|
|
||||||
})
|
|
||||||
}
|
|
||||||
return (
|
return (
|
||||||
<SettingContainer theme={themeMode}>
|
<SettingContainer theme={themeMode}>
|
||||||
<SettingGroup theme={theme}>
|
<SettingGroup theme={theme}>
|
||||||
@ -205,7 +196,9 @@ const DisplaySettings: FC = () => {
|
|||||||
<SettingGroup theme={theme}>
|
<SettingGroup theme={theme}>
|
||||||
<SettingTitle>
|
<SettingTitle>
|
||||||
{t('settings.display.custom.css')}
|
{t('settings.display.custom.css')}
|
||||||
<TitleExtra onClick={onOpenCherrycss}>从cherrycss获取</TitleExtra>
|
<TitleExtra onClick={() => window.api.openWebsite('https://cherrycss.com/')}>
|
||||||
|
{t('settings.display.custom.css.cherrycss')}
|
||||||
|
</TitleExtra>
|
||||||
</SettingTitle>
|
</SettingTitle>
|
||||||
<SettingDivider />
|
<SettingDivider />
|
||||||
<Input.TextArea
|
<Input.TextArea
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user