From 43855f1ac3f31d93a92e0455c3651b254926e3f3 Mon Sep 17 00:00:00 2001 From: ggurdin <46800240+ggurdin@users.noreply.github.com> Date: Thu, 12 Dec 2024 16:12:31 -0500 Subject: [PATCH] if user l1 is not set, return system language (#1234) --- lib/pangea/controllers/language_controller.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pangea/controllers/language_controller.dart b/lib/pangea/controllers/language_controller.dart index ed1483aa4..2846acd91 100644 --- a/lib/pangea/controllers/language_controller.dart +++ b/lib/pangea/controllers/language_controller.dart @@ -36,7 +36,7 @@ class LanguageController { String? get _userL1Code { final source = _pangeaController.userController.profile.userSettings.sourceLanguage; - return source == null || source.isEmpty ? null : source; + return source == null || source.isEmpty ? systemLanguage.langCode : source; } String? get _userL2Code {