Skip to content

Commit fccfeaa

Browse files
committed
fix: 修复 i18n
1 parent 719eb25 commit fccfeaa

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

core/cluster.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ async def callback(data: List[Any]):
370370
logger.tsuccess(
371371
"cluster.success.keep_alive.success",
372372
hits=humanize.intcomma(counter["hits"]),
373-
bytes=humanize.naturalsize(counter["hits"], binary=True),
373+
size=humanize.naturalsize(counter["hits"], binary=True),
374374
)
375375

376376
self.router.counters["bytes"] -= counter["bytes"]

i18n/zh_cn.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"cluster.error.enable.exception": "在尝试启用节点时发生错误:${e}",
3232
"cluster.error.keep_alive.cluster_not_enabled": "无法保活:节点未启用。",
3333
"cluster.error.keep_alive.socket_not_setup": "无法保活:WebSocket 客户端未创建。",
34+
"cluster.success.keep_alive.success": "保活成功!回源了 ${hits} 个文件,共 ${size}。",
3435
"cluster.error.keep_alive.error": "保活失败:${e}",
3536
"cluster.error.disable.error": "无法禁用节点:${e}",
3637
"cluster.error.enable.error": "无法启用节点:${e}",

0 commit comments

Comments
 (0)