diff --git a/frontend/src/Calendar/Legend/Legend.js b/frontend/src/Calendar/Legend/Legend.js index f6e970e8b..6413665d3 100644 --- a/frontend/src/Calendar/Legend/Legend.js +++ b/frontend/src/Calendar/Legend/Legend.js @@ -56,7 +56,7 @@ function Legend(props) { if (showCutoffUnmetIcon) { iconsToShow.push( = {} ) { + const { isProduction = true } = window.Sonarr; + + if (!isProduction && !(key in translations)) { + console.warn(`Missing translation for key: ${key}`); + } + const translation = translations[key] || key; tokens.appName = 'Sonarr'; diff --git a/frontend/typings/Globals.d.ts b/frontend/typings/Globals.d.ts index d11f99013..47c7a49da 100644 --- a/frontend/typings/Globals.d.ts +++ b/frontend/typings/Globals.d.ts @@ -7,5 +7,6 @@ interface Window { theme: string; urlBase: string; version: string; + isProduction: boolean; }; } diff --git a/src/NzbDrone.Core/Localization/Core/en.json b/src/NzbDrone.Core/Localization/Core/en.json index a478ad5b3..aceda5965 100644 --- a/src/NzbDrone.Core/Localization/Core/en.json +++ b/src/NzbDrone.Core/Localization/Core/en.json @@ -237,6 +237,7 @@ "CollectionsLoadError": "Unable to load collections", "ColonReplacement": "Colon Replacement", "ColonReplacementFormatHelpText": "Change how {appName} handles colon replacement", + "Completed": "Completed", "CompletedDownloadHandling": "Completed Download Handling", "Component": "Component", "Condition": "Condition", @@ -302,6 +303,7 @@ "CustomFormatsSpecificationResolution": "Resolution", "CustomFormatsSpecificationSource": "Source", "Cutoff": "Cutoff", + "CutoffNotMet": "Cutoff Not Met", "CutoffUnmet": "Cutoff Unmet", "CutoffUnmetLoadError": "Error loading cutoff unmet items", "CutoffUnmetNoItems": "No cutoff unmet items", @@ -542,8 +544,8 @@ "DownloadClientStatusSingleClientHealthCheckMessage": "Download clients unavailable due to failures: {downloadClientNames}", "DownloadClientTransmissionSettingsDirectoryHelpText": "Optional location to put downloads in, leave blank to use the default Transmission location", "DownloadClientTransmissionSettingsUrlBaseHelpText": "Adds a prefix to the {clientName} rpc url, eg {url}, defaults to '{defaultUrl}'", - "DownloadClientUnavailable": "Download Client Unavailable", "DownloadClientUTorrentTorrentStateError": "uTorrent is reporting an error", + "DownloadClientUnavailable": "Download Client Unavailable", "DownloadClientValidationApiKeyIncorrect": "API Key Incorrect", "DownloadClientValidationApiKeyRequired": "API Key Required", "DownloadClientValidationAuthenticationFailure": "Authentication Failure", @@ -1155,6 +1157,7 @@ "MediaManagementSettingsSummary": "Naming, file management settings and root folders", "Medium": "Medium", "MegabytesPerMinute": "Megabytes Per Minute", + "Menu": "Menu", "Message": "Message", "Metadata": "Metadata", "MetadataLoadError": "Unable to load Metadata", @@ -1575,6 +1578,7 @@ "PreferredProtocol": "Preferred Protocol", "PreferredSize": "Preferred Size", "PrefixedRange": "Prefixed Range", + "Premiere": "Premiere", "Presets": "Presets", "PreviewRename": "Preview Rename", "PreviewRenameSeason": "Preview Rename for this season",