feat(i18n): update subscription terminology in multiple languages for consistency
This commit is contained in:
parent
a9eb235c43
commit
978c3ea3cf
@ -1300,8 +1300,7 @@
|
||||
"title": "Tavily"
|
||||
},
|
||||
"title": "Web Search",
|
||||
"subscribe": "Subscribe",
|
||||
"subscribe_tooltip": "Subscribe to the blacklist.",
|
||||
"subscribe": "Blacklist Subscription",
|
||||
"subscribe_update": "Update now",
|
||||
"subscribe_add": "Add Subscription",
|
||||
"subscribe_url": "Subscription feed address",
|
||||
|
||||
@ -1299,8 +1299,7 @@
|
||||
},
|
||||
"title": "ウェブ検索",
|
||||
"blacklist_tooltip": "マッチパターン: *://*.example.com/*\n正規表現: /example\\.(net|org)/",
|
||||
"subscribe": "購読",
|
||||
"subscribe_tooltip": "ブラックリストに登録する",
|
||||
"subscribe": "ブラックリスト購読",
|
||||
"subscribe_update": "今すぐ更新",
|
||||
"subscribe_add": "サブスクリプションを追加",
|
||||
"subscribe_url": "フィードのURL",
|
||||
|
||||
@ -1299,8 +1299,7 @@
|
||||
},
|
||||
"title": "Поиск в Интернете",
|
||||
"blacklist_tooltip": "Соответствующий шаблон: *://*.example.com/*\nРегулярное выражение: /example\\.(net|org)/",
|
||||
"subscribe": "Подписка",
|
||||
"subscribe_tooltip": "Подписаться на черный список",
|
||||
"subscribe": "Черный список подписки",
|
||||
"subscribe_update": "Обновить сейчас",
|
||||
"subscribe_add": "Добавить подписку",
|
||||
"subscribe_url": "Адрес источника подписки",
|
||||
|
||||
@ -1293,8 +1293,7 @@
|
||||
"search_max_result": "搜索结果个数",
|
||||
"search_provider": "搜索服务商",
|
||||
"search_provider_placeholder": "选择一个搜索服务商",
|
||||
"subscribe": "订阅",
|
||||
"subscribe_tooltip": "订阅黑名单列表",
|
||||
"subscribe": "黑名单订阅",
|
||||
"subscribe_update": "立即更新",
|
||||
"subscribe_add": "添加订阅",
|
||||
"subscribe_url": "订阅源地址",
|
||||
@ -1381,5 +1380,3 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -1298,8 +1298,7 @@
|
||||
"no_provider_selected": "請選擇搜索服務商後再檢查",
|
||||
"check_failed": "驗證失敗",
|
||||
"blacklist_tooltip": "匹配模式: *://*.example.com/*\n正则表达式: /example\\.(net|org)/",
|
||||
"subscribe": "訂閱",
|
||||
"subscribe_tooltip": "訂閱黑名單列表",
|
||||
"subscribe": "黑名單訂閱",
|
||||
"subscribe_update": "立即更新",
|
||||
"subscribe_add": "添加訂閱",
|
||||
"subscribe_url": "訂閱源地址",
|
||||
|
||||
@ -46,8 +46,8 @@ const BasicSettings: FC = () => {
|
||||
</SettingRowTitle>
|
||||
<Switch checked={enhanceMode} onChange={(checked) => dispatch(setEnhanceMode(checked))} />
|
||||
</SettingRow>
|
||||
<SettingDivider style={{ marginTop: 15, marginBottom: 12 }} />
|
||||
<SettingRow>
|
||||
<SettingDivider style={{ marginTop: 15, marginBottom: 10 }} />
|
||||
<SettingRow style={{ height: 40 }}>
|
||||
<SettingRowTitle>{t('settings.websearch.search_max_result')}</SettingRowTitle>
|
||||
<Slider
|
||||
defaultValue={maxResults}
|
||||
|
||||
@ -18,6 +18,7 @@ interface DataType {
|
||||
url: string
|
||||
name: string
|
||||
}
|
||||
|
||||
const columns: TableProps<DataType>['columns'] = [
|
||||
{ title: t('common.name'), dataIndex: 'name', key: 'name' },
|
||||
{
|
||||
@ -26,6 +27,7 @@ const columns: TableProps<DataType>['columns'] = [
|
||||
key: 'url'
|
||||
}
|
||||
]
|
||||
|
||||
const BlacklistSettings: FC = () => {
|
||||
const [errFormat, setErrFormat] = useState(false)
|
||||
const [blacklistInput, setBlacklistInput] = useState('')
|
||||
@ -231,11 +233,10 @@ const BlacklistSettings: FC = () => {
|
||||
{t('common.save')}
|
||||
</Button>
|
||||
{errFormat && <Alert message={t('settings.websearch.blacklist_tooltip')} type="error" />}
|
||||
<SettingDivider />
|
||||
<SettingTitle>{t('settings.websearch.subscribe')}</SettingTitle>
|
||||
<div style={{ display: 'flex', flexDirection: 'column', gap: '5px' }}>
|
||||
<SettingRow>
|
||||
{t('settings.websearch.subscribe_tooltip')}
|
||||
</SettingGroup>
|
||||
<SettingGroup theme={theme}>
|
||||
<SettingTitle>
|
||||
{t('settings.websearch.subscribe')}
|
||||
<Button
|
||||
type={subscribeValid ? 'primary' : 'default'}
|
||||
ghost={subscribeValid}
|
||||
@ -243,14 +244,16 @@ const BlacklistSettings: FC = () => {
|
||||
onClick={handleAddSubscribe}>
|
||||
{t('settings.websearch.subscribe_add')}
|
||||
</Button>
|
||||
</SettingRow>
|
||||
</SettingTitle>
|
||||
<SettingDivider />
|
||||
<div style={{ display: 'flex', flexDirection: 'column', gap: '5px' }}>
|
||||
<Table<DataType>
|
||||
rowSelection={{ type: 'checkbox', ...rowSelection }}
|
||||
columns={columns}
|
||||
dataSource={dataSource}
|
||||
pagination={{ position: ['none'] }}
|
||||
/>
|
||||
<SettingRow>
|
||||
<SettingRow style={{ height: 50 }}>
|
||||
<Button
|
||||
type={subscribeValid ? 'primary' : 'default'}
|
||||
ghost={subscribeValid}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user