fix(i18n): 补齐九种语言的翻译并修复国际化检查
补齐页面缺译,统一动态文案的整句插值方式。
This commit is contained in:
+7
-13
@@ -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 等)一律保留,
|
||||
|
||||
Reference in New Issue
Block a user