更新国际化文案

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
@@ -2,6 +2,7 @@ import { Service, Inject } from 'typedi';
import path, { join } from 'path';
import config from '../config';
import { getFileContentByName } from '../config/util';
import { t } from '../shared/i18n';
import { Response } from 'express';
import { request } from 'undici';
@@ -23,7 +24,7 @@ export default class ConfigService {
) ||
!filePath
) {
return res.send({ code: 403, message: '文件无法访问' });
return res.send({ code: 403, message: t('文件无法访问') });
}
if (filePath.startsWith('sample/')) {