Skip to content

Commit

Permalink
new: add turkey region
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddify-com committed Aug 2, 2024
1 parent f20e174 commit 50b24cd
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 17 deletions.
11 changes: 6 additions & 5 deletions assets/translations/strings_en.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -174,11 +174,12 @@
"region": "Region",
"regionMsg": "Helps set default options to bypass domestic addresses",
"regions": {
"ir": "Iran (ir)",
"cn": "China (cn)",
"ru": "Russia (ru)",
"af": "Afghanistan (af)",
"id": "Indonesia (id)",
"ir": "Iran (ir) 🇮🇷",
"cn": "China (cn) 🇨🇳",
"ru": "Russia (ru) 🇷🇺",
"af": "Afghanistan (af) 🇦🇫",
"id": "Indonesia (id) 🇮🇩",
"tr": "Turkey (tr) 🇹🇷",
"other": "Other"
},
"themeMode": "Theme Mode",
Expand Down
11 changes: 6 additions & 5 deletions assets/translations/strings_fa.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -174,11 +174,12 @@
"region": "منطقه",
"regionMsg": "به انتخاب تنظیمات پیش‌فرض برای دور زدن آدرس‌های داخلی کمک می‌کند",
"regions": {
"ir": "ایران (ir)",
"cn": "چین (cn)",
"ru": "روسیه (ru)",
"af": "افغانستان (af)",
"id": "إندونيسيا (id)",
"ir": "ایران (ir) 🇮🇷",
"cn": "چین (cn) 🇨🇳",
"ru": "روسیه (ru) 🇷🇺",
"af": "افغانستان (af) 🇦🇫",
"id": "إندونيسيا (id) 🇮🇩",
"tr": "ترکیه (tr) 🇹🇷",
"other": "سایر"
},
"themeMode": "حالت پوسته",
Expand Down
11 changes: 6 additions & 5 deletions assets/translations/strings_tr.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,12 @@
"region": "Bölge",
"regionMsg": "Yerel adresleri atlamak için varsayılan seçeneği seçebilirsin",
"regions": {
"ir": "İran (ir)",
"cn": "Çin (cn)",
"ru": "Rusya (ru)",
"af": "Afghanistan (af)",
"id": "Endonezya (id)",
"ir": "İran (ir) 🇮🇷",
"cn": "Çin (cn) 🇨🇳",
"ru": "Rusya (ru) 🇷🇺",
"af": "Afghanistan (af) 🇦🇫",
"id": "Endonezya (id) 🇮🇩",
"tr": "Türk (tr) 🇹🇷",
"other": "Diğer"
},
"themeMode": "Tema Modu",
Expand Down
2 changes: 1 addition & 1 deletion dependencies.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
core.version=2.1.1
core.version=2.1.2
2 changes: 2 additions & 0 deletions lib/core/model/region.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ enum Region {
ru,
af,
id,
tr,
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,
tr => t.settings.general.regions.tr,
af => t.settings.general.regions.af,
id => t.settings.general.regions.id,
other => t.settings.general.regions.other,
Expand Down
2 changes: 1 addition & 1 deletion libcore

0 comments on commit 50b24cd

Please sign in to comment.