fix: use 'en' as fallback locale in email, fix #374

This commit is contained in:
lesion 2024-04-10 11:41:50 +02:00
parent 49dd7175fc
commit 80efc69946
No known key found for this signature in database
GPG key ID: 352918250B012177

View file

@ -44,9 +44,10 @@ const mail = {
directory: path.join(__dirname, '..', '..', 'locales', 'email'), directory: path.join(__dirname, '..', '..', 'locales', 'email'),
objectNotation: true, objectNotation: true,
syncFiles: false, syncFiles: false,
retryInDefaultLocale: true,
updateFiles: false, updateFiles: false,
defaultLocale: settings.instance_locale || 'en', defaultLocale: 'en',
locale, locale: settings.instance_locale,
locales: Object.keys(locales) locales: Object.keys(locales)
}, },
transport: settings.smtp || {} transport: settings.smtp || {}