This commit is contained in:
Baobhan Sith
2025-04-26 20:39:01 +08:00
parent 9f4b248dff
commit 55766a5078
2 changed files with 7 additions and 1 deletions
@@ -12,7 +12,7 @@ import {
} from '../types/notification.types';
import * as nodemailer from 'nodemailer';
import Mail from 'nodemailer/lib/mailer';
import i18next, { defaultLng, supportedLngs } from '../i18n';
import i18next, { defaultLng, supportedLngs } from '../i18n'; // Import supportedLngs
import { settingsService } from './settings.service';
@@ -274,6 +274,9 @@ export class NotificationService {
// --- 添加调试日志 ---
console.log(`[通知调试] 刚从数据库获取的 langSetting: ${langSetting}`);
// --- 结束调试日志 ---
// --- 添加调试日志 ---
console.log(`[通知调试] Checking langSetting against supportedLngs:`, supportedLngs);
// --- 结束调试日志 ---
if (langSetting && supportedLngs.includes(langSetting)) {
userLang = langSetting;
}