Commit 741aaf44 by Clansty

fix: wrap scope tag labels with t() for i18n support

parent 116e0b8f
...@@ -583,9 +583,9 @@ export default function SettingsChannelAffinity(props) { ...@@ -583,9 +583,9 @@ export default function SettingsChannelAffinity(props) {
title: t('作用域'), title: t('作用域'),
render: (_, record) => { render: (_, record) => {
const tags = []; const tags = [];
if (record?.include_using_group) tags.push('分组'); if (record?.include_using_group) tags.push(t('分组'));
if (record?.include_model_name) tags.push('模型'); if (record?.include_model_name) tags.push(t('模型'));
if (record?.include_rule_name) tags.push('规则'); if (record?.include_rule_name) tags.push(t('规则'));
if (tags.length === 0) return '-'; if (tags.length === 0) return '-';
return tags.map((x) => ( return tags.map((x) => (
<Tag key={x} style={{ marginRight: 4 }}> <Tag key={x} style={{ marginRight: 4 }}>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment