fix(i18n): 补齐九语翻译并修复国际化检查
补齐历史缺译并统一整句插值。九语覆盖 100%,静态检查及 713 项单测通过。
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user