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

This commit is contained in:
Barış Soner Uşaklı
2023-10-05 12:53:00 -04:00
parent 844cb91beb
commit 1072b38b83

View File

@@ -178,7 +178,7 @@ async function getNotificationSettings(userData) {
const setting = userData.settings[type]; const setting = userData.settings[type];
return { return {
name: type, name: type,
label: `[[notifications:${type}]]`, label: `[[notifications:${type.replace(/_/g, '-')}]]`,
none: setting === 'none', none: setting === 'none',
notification: setting === 'notification', notification: setting === 'notification',
email: setting === 'email', email: setting === 'email',