fix(routing): show the Balancer label on mobile rule cards (#6960)

RuleCardList labelled balancer rules with t('pages.xray.balancer'), which is an object in every locale, so phones showed i18next's 'returned an object instead of string' error. It now uses the pages.xray.rules.balancer leaf the Balancers tab already uses, and the dead-keys test fails on any literal key that names a group.
This commit is contained in:
Cheng Ho Ming, Eric
2026-11-02 22:10:18 +08:00
committed by GitHub
parent 14f2bb5e2c
commit 05199dda00
2 changed files with 13 additions and 4 deletions
@@ -152,9 +152,7 @@ export default function RuleCardList({
<span className="flow-arrow">→</span>
<div className="flow-side flow-side-target">
<span className="flow-label">
{rule.balancerTag
? t('pages.xray.balancer') || 'Balancer'
: t('pages.xray.Outbounds')}
{rule.balancerTag ? t('pages.xray.rules.balancer') : t('pages.xray.Outbounds')}
</span>
{rule.outboundTag ? (
<Tag color="green" className="flow-tag">