Files
umbrix/lib/core/localization/locale_extensions.dart
Umbrix Developer 76a374950f feat: mobile-like window size and always-visible stats
- Changed window size to mobile phone format (400x800)
- Removed width condition for ActiveProxyFooter - now always visible
- Added run-umbrix.sh launch script with icon copying
- Stats cards now display on all screen sizes
2026-01-17 13:09:20 +03:00

26 lines
826 B
Dart

import 'dart:io';
import 'package:umbrix/gen/fonts.gen.dart';
import 'package:umbrix/gen/translations.g.dart';
extension AppLocaleX on AppLocale {
String get preferredFontFamily => this == AppLocale.fa ? FontFamily.shabnam : (!Platform.isWindows ? "" : FontFamily.emoji);
String get localeName => switch (flutterLocale.toString()) {
"en" => "English",
"fa" => "فارسی",
"ar" => "العربية",
"ckb-KUR" => "کوردی سۆرانی",
"ru" => "Русский",
"zh" || "zh_CN" => "中文 (中国)",
"zh_TW" => "中文 (台湾)",
"tr" => "Türkçe",
"es" => "Spanish",
"id" => "Indonesian",
"hi" => "हिन्दी",
"pt_BR" => "Portuguese (Brazil)",
"fr" => "Français",
_ => "Unknown",
};
}