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'),
objectNotation: true,
syncFiles: false,
retryInDefaultLocale: true,
updateFiles: false,
defaultLocale: settings.instance_locale || 'en',
locale,
defaultLocale: 'en',
locale: settings.instance_locale,
locales: Object.keys(locales)
},
transport: settings.smtp || {}