1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-22 22:16:13 -04:00

Fixed: Fallback to English translations if invalid UI language in config

This commit is contained in:
Stevie Robinson
2023-09-01 02:47:38 +02:00
committed by GitHub
parent c123596c68
commit 4c72017412
4 changed files with 22 additions and 1 deletions
+7
View File
@@ -220,6 +220,13 @@ class UISettings extends Component {
helpTextWarning={translate('BrowserReloadRequired')}
onChange={onInputChange}
{...settings.uiLanguage}
errors={
languages.some((language) => language.key === settings.uiLanguage.value) ?
settings.uiLanguage.errors :
[
...settings.uiLanguage.errors,
{ message: translate('InvalidUILanguage') }
]}
/>
</FormGroup>
</FieldSet>