Translate all Chinese comments and strings to English

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-07 20:03:19 +08:00
parent 7d5918837b
commit 1d621bf304
57 changed files with 499 additions and 499 deletions

View File

@@ -57,17 +57,17 @@ export async function saveFilter(addFilterId, next = null) {
cancelButtonColor: '#94a3b8',
customClass: customClass,
});
// 透過回傳值判斷要不要轉址
if(isConfirmed) { // 存檔成功
// Determine whether to redirect based on the return value
if(isConfirmed) { // Save succeeded
await addFilterId(fileName);
// 顯示儲存完成
// Show save complete notification
if (value) { // Example of value: yes
savedSuccessfully(value);
}
// 清空欄位
// Clear the input field
fileName = '';
return true;
} else { // 點擊取消或空白處,為存檔失敗。
} else { // Clicked cancel or outside the dialog; save failed.
pageAdminStore.keepPreviousPage();
// Not every time we have nontrivial next value
@@ -88,7 +88,7 @@ export async function savedSuccessfully(value) {
await Swal.fire({
title: 'SAVE COMPLETE',
html: `<span class="text-primary">${escapeHtml(value)}</span> has been saved in Lucia.`,
timer: 3000, // 停留 3 秒後自動關閉
timer: 3000, // Auto-close after 3 seconds
showConfirmButton: false,
icon: 'success',
iconColor: '#0099FF',
@@ -188,15 +188,15 @@ export async function saveConformance(addConformanceCreateCheckId) {
cancelButtonColor: '#94a3b8',
customClass: customClass,
});
// 透過回傳值判斷要不要轉址
if(isConfirmed) { // 存檔成功
// Determine whether to redirect based on the return value
if(isConfirmed) { // Save succeeded
await addConformanceCreateCheckId(fileName);
// 顯示儲存完成
// Show save complete notification
if (value) savedSuccessfully(value);
// 清空欄位
// Clear the input field
fileName = '';
return true;
} else { // 點擊取消或空白處,為存檔失敗。
} else { // Clicked cancel or outside the dialog; save failed.
return false;
}
}
@@ -329,7 +329,7 @@ export async function uploadFailedFirst(failureType, failureMsg, failureLoc) {
await Swal.fire({
title: 'IMPORT FAILED',
html: value,
timer: 3000, // 停留 3 秒後自動關閉
timer: 3000, // Auto-close after 3 seconds
showConfirmButton: false,
icon: 'error',
iconColor: '#FF3366',
@@ -390,7 +390,7 @@ export async function uploadFailedSecond(detail) {
await Swal.fire({
title: 'IMPORT FAILED',
html: `<div class="text-left mx-3 space-y-1"><p>Error(s) detected:</p><ul class="list-disc ml-6">${srt}</ul><p>${manySrt} Please check.</p></div>`,
timer: 3000, // 停留 3 秒後自動關閉
timer: 3000, // Auto-close after 3 seconds
showConfirmButton: false,
icon: 'error',
iconColor: '#FF3366',
@@ -405,7 +405,7 @@ export async function uploadFailedSecond(detail) {
export async function uploadSuccess() {
await Swal.fire({
title: 'IMPORT COMPLETED',
timer: 3000, // 停留 3 秒後自動關閉
timer: 3000, // Auto-close after 3 seconds
showConfirmButton: false,
icon: 'success',
iconColor: '#0099FF',
@@ -494,9 +494,9 @@ export async function renameModal(rename, type, id, baseName) {
}
});
// 改名成功
// Rename succeeded
if(isConfirmed) await rename(type, id, value);
// 清空欄位 fileName = '';
// Clear the field: fileName = ''
}
/**
* Shows a confirmation dialog for deleting a file and its dependents.
@@ -544,7 +544,7 @@ export async function deleteFileModal(files, type, id, name) {
export async function deleteSuccess() {
await Swal.fire({
title: 'FILE(S) DELETED',
timer: 3000, // 停留 3 秒後自動關閉
timer: 3000, // Auto-close after 3 seconds
showConfirmButton: false,
icon: 'success',
iconColor: '#0099FF',