Files
umbrix/lib/core/model/region.dart

26 lines
649 B
Dart
Raw Permalink Normal View History

import 'package:umbrix/core/localization/translations.dart';
2023-12-01 12:56:24 +03:30
enum Region {
ir,
cn,
ru,
2023-12-28 18:15:59 +03:30
af,
2024-07-23 18:46:37 +07:00
id,
2024-08-02 15:58:24 +02:00
tr,
2024-09-02 04:44:35 +02:00
br,
in_, // India
2023-12-01 12:56:24 +03:30
other;
String present(TranslationsEn t) => switch (this) {
ir => t.settings.general.regions.ir,
cn => t.settings.general.regions.cn,
ru => t.settings.general.regions.ru,
2024-08-02 15:58:24 +02:00
tr => t.settings.general.regions.tr,
2023-12-28 18:15:59 +03:30
af => t.settings.general.regions.af,
2024-07-23 18:46:37 +07:00
id => t.settings.general.regions.id,
2024-09-02 04:44:35 +02:00
br => t.settings.general.regions.br,
in_ => "India", // Добавим в переводы позже
2023-12-01 12:56:24 +03:30
other => t.settings.general.regions.other,
};
}