From: Dessalines Date: Tue, 21 Feb 2023 20:53:35 +0000 (-0500) Subject: Adding a warning for deselecting the undetermined language. (#945) X-Git-Url: http://these/git/%7BpictrsAvatarThumbnail%28this.props.site.site.icon%29%7D?a=commitdiff_plain;h=12ed6ed31a5deebcbfcaea0e62901a145711e38b;p=lemmy-ui.git Adding a warning for deselecting the undetermined language. (#945) - Fixes #930 --- diff --git a/lemmy-translations b/lemmy-translations index 819531a..7379716 160000 --- a/lemmy-translations +++ b/lemmy-translations @@ -1 +1 @@ -Subproject commit 819531ae64c6cba12cb406eb98333fd52988bf3e +Subproject commit 7379716231b9f7e67f710751c839398b7ab5d65e diff --git a/src/shared/components/common/language-select.tsx b/src/shared/components/common/language-select.tsx index 1182531..d98be2e 100644 --- a/src/shared/components/common/language-select.tsx +++ b/src/shared/components/common/language-select.tsx @@ -47,33 +47,38 @@ export class LanguageSelect extends Component { return this.props.iconVersion ? ( this.selectBtn ) : ( -
- -
- {this.selectBtn} - {this.props.multiple && ( -
- -
- )} +
+
+ {i18n.t("undetermined_language_warning")} +
+
+ +
+ {this.selectBtn} + {this.props.multiple && ( +
+ +
+ )} +
);