if user l1 is not set, return system language (#1234)

This commit is contained in:
ggurdin 2024-12-12 16:12:31 -05:00 committed by GitHub
parent 358f4bc4aa
commit 43855f1ac3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 {