fix(i18n): 补齐九种语言的翻译并修复国际化检查

补齐页面缺译,统一动态文案的整句插值方式。
This commit is contained in:
zhanjunhao
2026-11-17 14:10:25 +08:00
parent ef3f405190
commit 67969a041d
146 changed files with 16591 additions and 11007 deletions
+7 -13
View File
@@ -581,20 +581,14 @@ export const stripHistoryAttachments = (messages) => {
counts.get(n) > 1 ? `${n}×${counts.get(n)}` : n,
);
if (grouped.length <= 5) {
return (
'\n\n' +
i18next.t('[已发送附件: {{names}}]', {
names: grouped.join(', '),
})
);
return `\n\n${i18next.t('[已发送附件: {{names}}]', {
names: grouped.join(', '),
})}`;
}
return (
'\n\n' +
i18next.t('[已发送附件: {{names}} 等 {{total}} 个]', {
names: grouped.slice(0, 5).join(', '),
total: names.length,
})
);
return `\n\n${i18next.t('[已发送附件: {{names}} 等 {{total}} 个]', {
names: grouped.slice(0, 5).join(', '),
total: names.length,
})}`;
};
// 白名单识别"要剥离的附件 part",其余 part(text / 未来可能的 audio / video 等)一律保留,