fix(i18n): 补齐九种语言的翻译并修复国际化检查
补齐页面缺译,统一动态文案的整句插值方式。
This commit is contained in:
@@ -267,7 +267,7 @@ export const useMjLogsData = () => {
|
||||
// Copy text function
|
||||
const copyText = async (text) => {
|
||||
if (await copy(text)) {
|
||||
showSuccess(t('已复制:') + text);
|
||||
showSuccess(t('已复制:{{text}}', { text: text }));
|
||||
} else {
|
||||
Modal.error({ title: t('无法复制到剪贴板,请手动复制'), content: text });
|
||||
}
|
||||
|
||||
@@ -298,7 +298,7 @@ export const useModelPricingData = () => {
|
||||
|
||||
const copyText = async (text) => {
|
||||
if (await copy(text)) {
|
||||
showSuccess(t('已复制:') + text);
|
||||
showSuccess(t('已复制:{{text}}', { text: text }));
|
||||
} else {
|
||||
Modal.error({ title: t('无法复制到剪贴板,请手动复制'), content: text });
|
||||
}
|
||||
|
||||
@@ -954,8 +954,9 @@ export const useApiRequest = (
|
||||
|
||||
setDebugData((prev) => ({
|
||||
...prev,
|
||||
response:
|
||||
t('Stream启动失败:') + '\n' + JSON.stringify(errorInfo, null, 2),
|
||||
response: t('Stream启动失败:\n{{value}}', {
|
||||
value: JSON.stringify(errorInfo, null, 2),
|
||||
}),
|
||||
}));
|
||||
setActiveDebugTab(DEBUG_TABS.RESPONSE);
|
||||
|
||||
|
||||
@@ -420,7 +420,7 @@ export const useTaskLogsData = ({
|
||||
// Copy text function
|
||||
const copyText = async (text) => {
|
||||
if (await copy(text)) {
|
||||
showSuccess(t('已复制:') + text);
|
||||
showSuccess(t('已复制:{{text}}', { text: text }));
|
||||
} else {
|
||||
Modal.error({ title: t('无法复制到剪贴板,请手动复制'), content: text });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user