fix(lang): add missing i18n strings for notification settings

pull/738/head
sct 4 years ago
parent 21db3676d1
commit 2f75c4c6ae

@ -26,6 +26,8 @@ const messages = defineMessages({
'Here you can pick and choose what types of notifications to send and through what types of services.',
notificationsettingssaved: 'Notification settings saved!',
notificationsettingsfailed: 'Notification settings failed to save.',
enablenotifications: 'Enable Notifications',
autoapprovedrequests: 'Send notifications for auto-approved requests',
});
interface SettingsRoute {
@ -206,7 +208,9 @@ const SettingsNotifications: React.FC = ({ children }) => {
htmlFor="name"
className="block text-sm font-medium leading-5 text-gray-400 sm:mt-px"
>
<span className="mr-2">Enable Notifications</span>
<span className="mr-2">
{intl.formatMessage(messages.enablenotifications)}
</span>
</label>
<div className="mt-1 sm:mt-0 sm:col-span-2">
<Field
@ -226,7 +230,7 @@ const SettingsNotifications: React.FC = ({ children }) => {
className="block text-sm font-medium leading-5 text-gray-400 sm:mt-px"
>
<span className="mr-2">
Send Notifications for auto-approved media
{intl.formatMessage(messages.autoapprovedrequests)}
</span>
</label>
<div className="mt-1 sm:mt-0 sm:col-span-2">

@ -349,6 +349,7 @@
"components.Settings.addsonarr": "Add Sonarr Server",
"components.Settings.apikey": "API Key",
"components.Settings.applicationurl": "Application URL",
"components.Settings.autoapprovedrequests": "Send notifications for auto-approved requests",
"components.Settings.cancelscan": "Cancel Scan",
"components.Settings.copied": "Copied API key to clipboard",
"components.Settings.currentlibrary": "Current Library: {name}",
@ -358,6 +359,7 @@
"components.Settings.delete": "Delete",
"components.Settings.deleteserverconfirm": "Are you sure you want to delete this server?",
"components.Settings.edit": "Edit",
"components.Settings.enablenotifications": "Enable Notifications",
"components.Settings.generalsettings": "General Settings",
"components.Settings.generalsettingsDescription": "These are settings related to general Overseerr configuration.",
"components.Settings.hideAvailable": "Hide available media",

Loading…
Cancel
Save