mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-08 23:18:16 -07:00
fix: Locale selection issue with country-specific locales (#383)
This commit is contained in:
parent
3d7a654096
commit
f3e920ac79
3 changed files with 19 additions and 9 deletions
|
|
@ -31,7 +31,7 @@ List<Widget> buildClientSettingsVisual(
|
|||
context: context,
|
||||
locale: ref.watch(clientSettingsProvider.select((value) => (value.selectedLocale ?? currentLocale))),
|
||||
child: Builder(builder: (context) {
|
||||
String language = "Unknown";
|
||||
String language = "English";
|
||||
try {
|
||||
language = context.localized.nativeName;
|
||||
} catch (_) {}
|
||||
|
|
@ -46,7 +46,7 @@ List<Widget> buildClientSettingsVisual(
|
|||
context: context,
|
||||
locale: entry,
|
||||
child: Builder(builder: (context) {
|
||||
return Text("${context.localized.nativeName} (${entry.languageCode.toUpperCase()})");
|
||||
return Text("${context.localized.nativeName} (${entry.toDisplayCode()})");
|
||||
}),
|
||||
),
|
||||
onTap: () => ref
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue