fix(ui): add missing string for default Discover Language & edit string for default Discover Region (#1004)

pull/1003/head
TheCatLady 4 years ago committed by GitHub
parent 84b950edc0
commit 0acad8e9fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -6,7 +6,7 @@ import type { Region } from '../../../server/lib/settings';
import { defineMessages, useIntl } from 'react-intl'; import { defineMessages, useIntl } from 'react-intl';
const messages = defineMessages({ const messages = defineMessages({
regionDefault: 'All', regionDefault: 'All Regions',
}); });
interface RegionSelectorProps { interface RegionSelectorProps {

@ -48,6 +48,7 @@ const messages = defineMessages({
validationApplicationTitle: 'You must provide an application title', validationApplicationTitle: 'You must provide an application title',
validationApplicationUrl: 'You must provide a valid URL', validationApplicationUrl: 'You must provide a valid URL',
validationApplicationUrlTrailingSlash: 'URL must not end in a trailing slash', validationApplicationUrlTrailingSlash: 'URL must not end in a trailing slash',
originalLanguageDefault: 'All Languages',
}); });
const SettingsMain: React.FC = () => { const SettingsMain: React.FC = () => {
@ -306,7 +307,9 @@ const SettingsMain: React.FC = () => {
id="originalLanguage" id="originalLanguage"
name="originalLanguage" name="originalLanguage"
> >
<option value="">All</option> <option value="">
{intl.formatMessage(messages.originalLanguageDefault)}
</option>
{languages?.map((language) => ( {languages?.map((language) => (
<option <option
key={`language-key-${language.iso_639_1}`} key={`language-key-${language.iso_639_1}`}

@ -28,6 +28,7 @@ const messages = defineMessages({
originallanguage: 'Discover Language', originallanguage: 'Discover Language',
originallanguageTip: originallanguageTip:
'Filter content by original language (only applies to the "Popular" and "Upcoming" categories)', 'Filter content by original language (only applies to the "Popular" and "Upcoming" categories)',
originalLanguageDefault: 'All Languages',
}); });
const UserGeneralSettings: React.FC = () => { const UserGeneralSettings: React.FC = () => {
@ -160,7 +161,9 @@ const UserGeneralSettings: React.FC = () => {
id="originalLanguage" id="originalLanguage"
name="originalLanguage" name="originalLanguage"
> >
<option value="">All</option> <option value="">
{intl.formatMessage(messages.originalLanguageDefault)}
</option>
{languages?.map((language) => ( {languages?.map((language) => (
<option <option
key={`language-key-${language.iso_639_1}`} key={`language-key-${language.iso_639_1}`}

@ -138,7 +138,7 @@
"components.PlexLoginButton.loading": "Loading…", "components.PlexLoginButton.loading": "Loading…",
"components.PlexLoginButton.signingin": "Signing in…", "components.PlexLoginButton.signingin": "Signing in…",
"components.PlexLoginButton.signinwithplex": "Sign In", "components.PlexLoginButton.signinwithplex": "Sign In",
"components.RegionSelector.regionDefault": "All", "components.RegionSelector.regionDefault": "All Regions",
"components.RequestBlock.profilechanged": "Quality Profile", "components.RequestBlock.profilechanged": "Quality Profile",
"components.RequestBlock.requestoverrides": "Request Overrides", "components.RequestBlock.requestoverrides": "Request Overrides",
"components.RequestBlock.rootfolder": "Root Folder", "components.RequestBlock.rootfolder": "Root Folder",
@ -517,6 +517,7 @@
"components.Settings.notificationsettingsfailed": "Notification settings failed to save.", "components.Settings.notificationsettingsfailed": "Notification settings failed to save.",
"components.Settings.notificationsettingssaved": "Notification settings saved successfully!", "components.Settings.notificationsettingssaved": "Notification settings saved successfully!",
"components.Settings.notrunning": "Not Running", "components.Settings.notrunning": "Not Running",
"components.Settings.originalLanguageDefault": "All Languages",
"components.Settings.originallanguage": "Discover Language", "components.Settings.originallanguage": "Discover Language",
"components.Settings.originallanguageTip": "Filter content by original language (only applies to the \"Popular\" and \"Upcoming\" categories)", "components.Settings.originallanguageTip": "Filter content by original language (only applies to the \"Popular\" and \"Upcoming\" categories)",
"components.Settings.plexlibraries": "Plex Libraries", "components.Settings.plexlibraries": "Plex Libraries",
@ -679,6 +680,7 @@
"components.UserProfile.UserSettings.UserGeneralSettings.displayName": "Display Name", "components.UserProfile.UserSettings.UserGeneralSettings.displayName": "Display Name",
"components.UserProfile.UserSettings.UserGeneralSettings.generalsettings": "General Settings", "components.UserProfile.UserSettings.UserGeneralSettings.generalsettings": "General Settings",
"components.UserProfile.UserSettings.UserGeneralSettings.localuser": "Local User", "components.UserProfile.UserSettings.UserGeneralSettings.localuser": "Local User",
"components.UserProfile.UserSettings.UserGeneralSettings.originalLanguageDefault": "All Languages",
"components.UserProfile.UserSettings.UserGeneralSettings.originallanguage": "Discover Language", "components.UserProfile.UserSettings.UserGeneralSettings.originallanguage": "Discover Language",
"components.UserProfile.UserSettings.UserGeneralSettings.originallanguageTip": "Filter content by original language (only applies to the \"Popular\" and \"Upcoming\" categories)", "components.UserProfile.UserSettings.UserGeneralSettings.originallanguageTip": "Filter content by original language (only applies to the \"Popular\" and \"Upcoming\" categories)",
"components.UserProfile.UserSettings.UserGeneralSettings.plexuser": "Plex User", "components.UserProfile.UserSettings.UserGeneralSettings.plexuser": "Plex User",

Loading…
Cancel
Save