Skip to content

Node.js based forum software built for the modern web

fix: closes #12126, fix language keys

Barış Soner Uşaklı668a355afe16
diff --git a/src/controllers/admin/settings.js b/src/controllers/admin/settings.js
index 9ecf08548d..61ccd6a091 100644
--- a/src/controllers/admin/settings.js
+++ b/src/controllers/admin/settings.js
@@ -49,7 +49,7 @@ settingsController.user = async (req, res) => {
const notificationTypes = await notifications.getAllNotificationTypes();
const notificationSettings = notificationTypes.map(type => ({
name: type,
- label: `[[notifications:${type}]]`,
+ label: `[[notifications:${type.replace(/_/g, '-')}]]`,
}));
res.render('admin/settings/user', {
title: '[[admin/menu:settings/user]]',