Skip to content

Commit fa47ab7

Browse files
Fixed language labels in lanuage selector screen (#474) (#478)
Signed-off-by: G S Prakash <prakash.gs@cyberpwn.com>
1 parent 9deb944 commit fa47ab7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/ui/process_ui/widgets/language_selector.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class _LanguageSelectorState extends State<LanguageSelector> {
106106
_getDataEntryLabel() {
107107
String dataEntryLanguage = "";
108108
context.watch<GlobalProvider>().chosenLang.forEach((element) {
109-
String code = globalProvider.languageToCodeMapper[element]!;
109+
String code = context.read<GlobalProvider>().selectedLanguage;
110110
dataEntryLanguage +=
111111
" / ${AppLocalizations.of(context)!.dataEntryLanguage(code)}";
112112
});
@@ -116,7 +116,7 @@ class _LanguageSelectorState extends State<LanguageSelector> {
116116
_getNotificationLabel() {
117117
String notificationLanguage = "";
118118
context.watch<GlobalProvider>().chosenLang.forEach((element) {
119-
String code = globalProvider.languageToCodeMapper[element]!;
119+
String code = context.read<GlobalProvider>().selectedLanguage;
120120
notificationLanguage +=
121121
" / ${AppLocalizations.of(context)!.notificationLanguage(code)}";
122122
});

0 commit comments

Comments
 (0)