更新国际化文案

This commit is contained in:
whyour
2026-06-11 23:18:45 +08:00
parent 05f8fd3805
commit 6796068523
10 changed files with 26 additions and 13 deletions
+2 -1
View File
@@ -11,6 +11,7 @@ import { serveEnv } from '../config/serverEnv';
import { IKeyvStore, shareStore } from '../shared/store';
import { isValidToken } from '../shared/auth';
import path from 'path';
import { t } from '../shared/i18n';
export default ({ app }: { app: Application }) => {
// Security: Enable strict routing to prevent case-insensitive path bypass
@@ -143,7 +144,7 @@ export default ({ app }: { app: Application }) => {
}
if (isInitialized) {
return res.send({ code: 450, message: '未知错误' });
return res.send({ code: 450, message: t('未知错误') });
} else {
return next();
}