Skip to content

Commit

Permalink
refactor: slight format change
Browse files Browse the repository at this point in the history
This is so unreadable, there must've been a better way to do this.
  • Loading branch information
validcube authored Mar 28, 2024
1 parent 63d83a4 commit 9a66357
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,11 @@ class SUpdateLanguage extends BaseViewModel {
child: ListBody(
children: [
RadioListTile(
// TODO(Someone): There must've been a better way to do this.
title: Text(currentlyUsedLanguage.englishName),
subtitle: Text(
'${currentlyUsedLanguage.nativeName} (${LocaleSettings.currentLocale.languageCode}${LocaleSettings.currentLocale.countryCode != null ? '-${LocaleSettings.currentLocale.countryCode}' : ''})'),
'${currentlyUsedLanguage.nativeName} (${LocaleSettings.currentLocale.languageCode}${LocaleSettings.currentLocale.countryCode != null ? '-${LocaleSettings.currentLocale.countryCode}' : ''})',
),
value:
'${LocaleSettings.currentLocale.languageCode}-${LocaleSettings.currentLocale.countryCode}' ==
selectedLanguageCode.value,
Expand Down Expand Up @@ -110,6 +112,7 @@ class SUpdateLanguage extends BaseViewModel {
),
TextButton(
onPressed: () {
// TODO(nullcube): Translation will not update until we refresh the page.
updateLocale(selectedLanguageCode.value);
Navigator.of(context).pop();
},
Expand Down

1 comment on commit 9a66357

@HiFIi
Copy link

@HiFIi HiFIi commented on 9a66357 Mar 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This app is made with blood, sweat and tears ❤️ lol

Please sign in to comment.