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