summaryrefslogtreecommitdiff
path: root/src/i18n
diff options
context:
space:
mode:
authorLarvan2 <[email protected]>2026-07-05 17:36:35 +0800
committerLarvan2 <[email protected]>2026-07-05 17:36:35 +0800
commit30dfb51a61a6d6083640d411da8c63cb076318ab (patch)
tree457f95f9dafc6cf1196d35fdec5eb0d677667b23 /src/i18n
parenta7a842ee25a5b7fc5aa0cd20e9a3086d747332bc (diff)
feat(rules): support enabling/disabling rules and show hit/entry countsHEADmaster
Wire up the mihomo rules API's extra fields (disabled, hitCount, hitAt) and the /rules/disable endpoint so each rule can be toggled on/off and shows its hit count. Also surface the rule provider's ruleCount for RuleSet-type rules, since their own size field is always -1.
Diffstat (limited to 'src/i18n')
-rw-r--r--src/i18n/en.ts5
-rw-r--r--src/i18n/zh-cn.ts5
2 files changed, 10 insertions, 0 deletions
diff --git a/src/i18n/en.ts b/src/i18n/en.ts
index 534869c..1474d5a 100644
--- a/src/i18n/en.ts
+++ b/src/i18n/en.ts
@@ -93,4 +93,9 @@ export const data = {
internel: 'Internal Connection',
Clear: 'Clear',
group_fixed_tip: 'This group has a manually fixed selection; run a latency test to release it',
+ rule_entry_count: '{{count}} entries',
+ rule_hit_tip: 'Hit {{count}} times, last {{time}}',
+ rule_never_hit: 'Never hit',
+ rule_enable: 'Enable rule',
+ rule_disable: 'Disable rule',
};
diff --git a/src/i18n/zh-cn.ts b/src/i18n/zh-cn.ts
index f394279..664becb 100644
--- a/src/i18n/zh-cn.ts
+++ b/src/i18n/zh-cn.ts
@@ -94,4 +94,9 @@ export const data = {
internel: '内部链接',
Clear: '清空',
group_fixed_tip: '该组已手动固定选择,点击测速可解除固定',
+ rule_entry_count: '{{count}} 条规则',
+ rule_hit_tip: '已命中 {{count}} 次,最近一次{{time}}',
+ rule_never_hit: '从未命中',
+ rule_enable: '启用规则',
+ rule_disable: '禁用规则',
};