diff options
| author | ctaoist <[email protected]> | 2023-01-18 14:38:12 +0800 |
|---|---|---|
| committer | Larvan2 <[email protected]> | 2023-06-01 14:02:55 +0800 |
| commit | 83059336944e97cfc18c5b94ec2fc4f750ab2ab9 (patch) | |
| tree | 3c6aec3695b64a7512b142c97341a11b5e4d56ba /src | |
| parent | 37bfd0681a8cbd9e399502f13878ed196f6a7077 (diff) | |
增加在配置页面显示当前所用的后端 (#731)
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/Config.tsx | 5 | ||||
| -rw-r--r-- | src/i18n/en.ts | 2 | ||||
| -rw-r--r-- | src/i18n/zh-cn.ts | 2 |
3 files changed, 8 insertions, 1 deletions
diff --git a/src/components/Config.tsx b/src/components/Config.tsx index 940f911..2af83fb 100644 --- a/src/components/Config.tsx +++ b/src/components/Config.tsx @@ -432,10 +432,13 @@ function ConfigImpl({ </div> <div> + <div className={s0.label}>{t('current_backend')} + <p>{apiConfig.baseURL}</p> + </div> <div className={s0.label}>Action</div> <Button start={<LogOut size={16} />} - label="Switch backend" + label={t("switch_backend")} onClick={openAPIConfigModal} /> </div> diff --git a/src/i18n/en.ts b/src/i18n/en.ts index f200e72..19f1707 100644 --- a/src/i18n/en.ts +++ b/src/i18n/en.ts @@ -29,7 +29,9 @@ export const data = { order_name_asc: 'By name alphabetically (A-Z)', order_name_desc: 'By name alphabetically (Z-A)', Connections: 'Connections', + current_backend: 'Current Backend', Active: 'Active', + switch_backend: 'Switch backend"', Closed: 'Closed', switch_theme: 'Switch theme', theme: 'theme', diff --git a/src/i18n/zh-cn.ts b/src/i18n/zh-cn.ts index c38c32b..da2d1b4 100644 --- a/src/i18n/zh-cn.ts +++ b/src/i18n/zh-cn.ts @@ -30,7 +30,9 @@ export const data = { order_name_asc: '按名称字母排序 (A-Z)', order_name_desc: '按名称字母排序 (Z-A)', Connections: '连接', + current_backend: '当前后端', Active: '活动', + switch_backend: '切换后端', Closed: '已断开', switch_theme: '切换主题', theme: '主题', |
