Skip to content

Node.js based forum software built for the modern web

fix: lang key, type has _, lang keys changed to use -

Barış Soner Uşaklı1072b38b8375
diff --git a/src/controllers/accounts/settings.js b/src/controllers/accounts/settings.js
index 0e727621cb..2f5259822a 100644
--- a/src/controllers/accounts/settings.js
+++ b/src/controllers/accounts/settings.js
@@ -178,7 +178,7 @@ async function getNotificationSettings(userData) {
const setting = userData.settings[type];
return {
name: type,
- label: `[[notifications:${type}]]`,
+ label: `[[notifications:${type.replace(/_/g, '-')}]]`,
none: setting === 'none',
notification: setting === 'notification',
email: setting === 'email',