refactor: update UI text and error messages to English for better accessibility

This commit is contained in:
Laisky.Cai
2025-01-19 12:59:58 +00:00
parent 76ba80d406
commit 13b1b165bd
62 changed files with 805 additions and 805 deletions

View File

@@ -52,7 +52,7 @@ export function renderQuotaWithPrompt(quota, digits) {
let displayInCurrency = localStorage.getItem('display_in_currency');
displayInCurrency = displayInCurrency === 'true';
if (displayInCurrency) {
return `等价金额${renderQuota(quota, digits)}`;
return `Equivalent Amount${renderQuota(quota, digits)}`;
}
return '';
}

View File

@@ -79,26 +79,26 @@ export function showError(error) {
if (error.name === 'AxiosError') {
switch (error.response.status) {
case 401:
// toast.error('错误:未登录或登录已过期,请重新登录!', showErrorOptions);
// toast.error('Error: Not logged in or login has expired, please log in again!', showErrorOptions);
window.location.href = '/login?expired=true';
break;
case 429:
toast.error('错误:请求次数过多,请稍后再试!', showErrorOptions);
toast.error('Error: Too many requests, please try again later!', showErrorOptions);
break;
case 500:
toast.error('错误:服务器内部错误,请联系管理员!', showErrorOptions);
toast.error('Error: Server internal error, please contact the online customer service!', showErrorOptions);
break;
case 405:
toast.info('本站仅作演示之用,无服务端!');
toast.info('This site is for demonstration purposes only, no server!');
break;
default:
toast.error('错误:' + error.message, showErrorOptions);
toast.error('Error:' + error.message, showErrorOptions);
}
return;
}
toast.error('错误:' + error.message, showErrorOptions);
toast.error('Error:' + error.message, showErrorOptions);
} else {
toast.error('错误:' + error, showErrorOptions);
toast.error('Error:' + error, showErrorOptions);
}
}