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

This commit is contained in:
sct
2021-01-23 10:13:10 +00:00
parent 21db3676d1
commit 2f75c4c6ae
2 changed files with 8 additions and 2 deletions

View File

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

View File

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