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
@@ -162,7 +162,7 @@ export default function UpstreamRatioSync(props) {
showError(res.data.message);
}
} catch (error) {
showError(t('获取渠道失败:') + error.message);
showError(t('获取渠道失败:{{message}}', { message: error.message }));
} finally {
setLoading(false);
}
@@ -211,8 +211,9 @@ export default function UpstreamRatioSync(props) {
const errorResults = test_results.filter((r) => r.status === 'error');
if (errorResults.length > 0) {
showWarning(
t('部分渠道测试失败:') +
errorResults.map((r) => `${r.name}: ${r.error}`).join(', '),
t('部分渠道测试失败:{{value}}', {
value: errorResults.map((r) => `${r.name}: ${r.error}`).join(', '),
}),
);
}
@@ -223,7 +224,7 @@ export default function UpstreamRatioSync(props) {
showSuccess(t('未找到差异化倍率,无需同步'));
}
} catch (e) {
showError(t('请求后端接口失败:') + e.message);
showError(t('请求后端接口失败:{{message}}', { message: e.message }));
} finally {
setSyncLoading(false);
}
@@ -601,7 +602,9 @@ export default function UpstreamRatioSync(props) {
return (
<Tooltip
content={t('以下上游数据可能不可信:') + untrustedSources}
content={t('以下上游数据可能不可信:{{untrustedSources}}', {
untrustedSources: untrustedSources,
})}
>
<Tag
color='yellow'