mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-08 23:18:16 -07:00
Init repo
This commit is contained in:
commit
764b6034e3
566 changed files with 212335 additions and 0 deletions
14
lib/util/local_extension.dart
Normal file
14
lib/util/local_extension.dart
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import 'package:flutter/material.dart';
|
||||
|
||||
extension LocalExtensions on Locale {
|
||||
String label() {
|
||||
return switch (languageCode) {
|
||||
"nl" => "Nederlands",
|
||||
"zh" => "简体中文",
|
||||
"es" => "Español",
|
||||
"fr" => "Français",
|
||||
"ja" => "日本語 (にほんご)",
|
||||
"en" || _ => "English",
|
||||
};
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue