Skip to content

Commit f59ee58

Browse files
committed
fix:i18n
1 parent cbd01f3 commit f59ee58

File tree

6 files changed

+53
-17
lines changed

6 files changed

+53
-17
lines changed

Diff for: public/logo.png

83.2 KB
Loading

Diff for: public/vite.svg

-1
This file was deleted.

Diff for: src/assets/logo.png

11.4 KB
Loading

Diff for: src/components/Check.vue

+15-13
Original file line numberDiff line numberDiff line change
@@ -1368,11 +1368,11 @@ function computeTableData() {
13681368
let fullRemark = '';
13691369
if (item.model.startsWith('o1-')) {
13701370
if (item.has_o1_reason) {
1371-
remark = '✨API 可靠';
1372-
fullRemark = '返回响应中包含非空 reasoning_tokens,API 可靠';
1371+
remark = t('O1_API_RELIABLE'); // '✨API 可靠'
1372+
fullRemark = t('O1_API_RELIABLE_DETAIL'); // '返回响应中包含非空 reasoning_tokens,API 可靠'
13731373
} else {
1374-
remark = '⚠️API 可能存在问题';
1375-
fullRemark = '返回响应中不包含 reasoning_tokens 或为空,API 非官';
1374+
remark = t('O1_API_POSSIBLE_ISSUE'); // '⚠️API 可能存在问题'
1375+
fullRemark = t('O1_API_POSSIBLE_ISSUE_DETAIL'); // '返回响应中不包含 reasoning_tokens 或为空,API 非官'
13761376
}
13771377
}
13781378
@@ -1437,14 +1437,15 @@ function computeTableData() {
14371437
// 针对 o1- 模型的特殊处理
14381438
if (item.model.startsWith('o1-')) {
14391439
if (item.has_o1_reason) {
1440-
remark += ' / ✨API 可靠';
1441-
fullRemark += '返回响应中包含非空 reasoning_tokens,API 可靠';
1440+
remark = t('O1_API_RELIABLE'); // '✨API 可靠'
1441+
fullRemark = t('O1_API_RELIABLE_DETAIL'); // '返回响应中包含非空 reasoning_tokens,API 可靠'
14421442
} else {
1443-
remark += ' / ⚠️API 可能存在问题';
1444-
fullRemark += '返回响应中不包含 reasoning_tokens 或为空,API 可能存在问题';
1443+
remark = t('O1_API_POSSIBLE_ISSUE'); // '⚠️API 可能存在问题'
1444+
fullRemark = t('O1_API_POSSIBLE_ISSUE_DETAIL'); // '返回响应中不包含 reasoning_tokens 或为空,API 非官'
14451445
}
14461446
}
14471447
1448+
14481449
data.push({
14491450
key: `inconsistent-${index}`,
14501451
status: status,
@@ -1593,27 +1594,28 @@ function showTemperatureVerificationResult(result) {
15931594
// 定义列
15941595
const columns = [
15951596
{
1596-
title: '测试',
1597+
title: t('TEST'),
15971598
dataIndex: 'testNumber',
15981599
key: 'testNumber',
15991600
width: '20%',
16001601
},
16011602
{
1602-
title: '响应',
1603+
title: t('RESPONSE'),
16031604
dataIndex: 'response',
16041605
key: 'response',
16051606
width: '80%',
16061607
},
16071608
];
16081609
1610+
16091611
Modal.info({
16101612
title: t('TEMPERATURE_VERIFICATION_RESULT'),
16111613
content: h('div', {}, [
16121614
h('p', {style: 'font-weight: bold;'}, `当前待验证模型:${result.model}`),
16131615
h(
16141616
'p',
16151617
{},
1616-
'参考值:c3.5 = 51(gcp测试),gpt-4o = 59,gpt-4o-mini = 32(azure测试)'
1618+
t('REFERENCE_VALUES')
16171619
),
16181620
h(
16191621
aTable,
@@ -1789,15 +1791,15 @@ const cloudDataList = ref([]);
17891791
17901792
const localListStyle = computed(() => {
17911793
if (localCacheList.value.length > 4) {
1792-
return { maxHeight: '320px', overflowY: 'auto' };
1794+
return {maxHeight: '320px', overflowY: 'auto'};
17931795
} else {
17941796
return {};
17951797
}
17961798
});
17971799
17981800
const cloudListStyle = computed(() => {
17991801
if (cloudDataList.value.length > 5) {
1800-
return { maxHeight: '420px', overflowY: 'auto' };
1802+
return {maxHeight: '420px', overflowY: 'auto'};
18011803
} else {
18021804
return {};
18031805
}

Diff for: src/locales/en.json

+19-2
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,23 @@
162162
"DETAIL_INTRODUCTION": "Detailed Introduction",
163163
"PLEASE_WAIT_FOR_TESTING": "Please wait for testing to complete before sharing.",
164164
"PLEASE_ENTER_CLOUD_URL_AND_PASSWORD": "Please enter the cloud URL and password",
165-
"CLOUD_LOGIN_FAILED": "Cloud login failed"
166-
165+
"CLOUD_LOGIN_FAILED": "Cloud login failed",
166+
"IMPORT_PARSE_ERROR": "Failed to parse the imported file, please check the format",
167+
"CLOUD_LOGIN_ERROR": "An error occurred while logging in to the cloud",
168+
"CONCLUSION": "Conclusion",
169+
"SIMILARITY_RESULTS": "Similarity Results",
170+
"UNKNOWN_ERROR": "Unknown error, please check the console logs",
171+
"O1_API_RELIABLE": "✨API is reliable",
172+
"O1_API_POSSIBLE_ISSUE": "⚠️API may have issues",
173+
"O1_API_RELIABLE_DETAIL": "Response contains non-empty reasoning_tokens, API is reliable",
174+
"O1_API_POSSIBLE_ISSUE_DETAIL": "Response does not contain reasoning_tokens or it's empty, API may have issues",
175+
"REFERENCE_VALUES": "Reference values: c3.5 = 51 (gcp test), gpt-4o = 59, gpt-4o-mini = 32 (azure test)",
176+
"TEST": "Test",
177+
"RESPONSE": "Response",
178+
"TEXT": "Text",
179+
"SYSTEM_FINGERPRINT": "System Fingerprint",
180+
"LANGUAGE_MENU": "Language Menu",
181+
"ERROR_MESSAGE": "Error Message",
182+
"RESOLUTION": "Resolution",
183+
"INVALID_IMPORT_FORMAT": "Invalid import format"
167184
}

Diff for: src/locales/zh.json

+19-1
Original file line numberDiff line numberDiff line change
@@ -163,5 +163,23 @@
163163
"SEE_MORE_INTRODUCTION": "查看更多介绍",
164164
"PLEASE_WAIT_FOR_TESTING": "请等待测试完成后再分享。",
165165
"PLEASE_ENTER_CLOUD_URL_AND_PASSWORD": "请输入云端URL和密码",
166-
"CLOUD_LOGIN_FAILED": "云端登录失败"
166+
"CLOUD_LOGIN_FAILED": "云端登录失败",
167+
"IMPORT_PARSE_ERROR": "导入的文件无法解析,请检查格式",
168+
"CLOUD_LOGIN_ERROR": "云端登录出错",
169+
"CONCLUSION": "结论",
170+
"SIMILARITY_RESULTS": "相似度结果",
171+
"UNKNOWN_ERROR": "未知错误,请查看控制台日志",
172+
"O1_API_RELIABLE": "✨API 可靠",
173+
"O1_API_POSSIBLE_ISSUE": "⚠️API 可能存在问题",
174+
"O1_API_RELIABLE_DETAIL": "返回响应中包含非空 reasoning_tokens,API 可靠",
175+
"O1_API_POSSIBLE_ISSUE_DETAIL": "返回响应中不包含 reasoning_tokens 或为空,API 可能存在问题",
176+
"REFERENCE_VALUES": "参考值:c3.5 = 51(gcp测试),gpt-4o = 59,gpt-4o-mini = 32(azure测试)",
177+
"TEST": "测试",
178+
"RESPONSE": "响应",
179+
"TEXT": "文本",
180+
"SYSTEM_FINGERPRINT": "系统指纹",
181+
"LANGUAGE_MENU": "语言菜单",
182+
"ERROR_MESSAGE": "错误信息",
183+
"RESOLUTION": "解决方案",
184+
"INVALID_IMPORT_FORMAT": "导入格式无效"
167185
}

0 commit comments

Comments
 (0)