Add Afghanistan region
This commit is contained in:
@@ -140,6 +140,7 @@
|
||||
"ir": "Iran (ir)",
|
||||
"cn": "China (cn)",
|
||||
"ru": "Russia (ru)",
|
||||
"af": "Afghanistan (af)",
|
||||
"other": "Other"
|
||||
},
|
||||
"themeMode": "Theme Mode",
|
||||
|
||||
@@ -140,6 +140,7 @@
|
||||
"ir": "ایران (ir)",
|
||||
"cn": "چین (cn)",
|
||||
"ru": "روسیه (ru)",
|
||||
"af": "افغانستان (af)",
|
||||
"other": "سایر"
|
||||
},
|
||||
"themeMode": "تم مود",
|
||||
|
||||
@@ -140,6 +140,7 @@
|
||||
"ir": "Иран (ir)",
|
||||
"cn": "Китай (cn)",
|
||||
"ru": "Россия (ru)",
|
||||
"af": "Afghanistan (af)",
|
||||
"other": "Другой"
|
||||
},
|
||||
"themeMode": "Оформление",
|
||||
|
||||
@@ -140,6 +140,7 @@
|
||||
"ir": "İran (ir)",
|
||||
"cn": "Çin (cn)",
|
||||
"ru": "Rusya (ru)",
|
||||
"af": "Afghanistan (af)",
|
||||
"other": "Diğer"
|
||||
},
|
||||
"themeMode": "Tema Modu",
|
||||
|
||||
@@ -140,6 +140,7 @@
|
||||
"ir": "伊朗 (ir)",
|
||||
"cn": "中国 (cn)",
|
||||
"ru": "俄罗斯 (ru)",
|
||||
"af": "Afghanistan (af)",
|
||||
"other": "其它"
|
||||
},
|
||||
"themeMode": "主题模式",
|
||||
|
||||
@@ -4,12 +4,14 @@ enum Region {
|
||||
ir,
|
||||
cn,
|
||||
ru,
|
||||
af,
|
||||
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,
|
||||
af => t.settings.general.regions.af,
|
||||
other => t.settings.general.regions.other,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -65,6 +65,13 @@ class ConfigOptionRepositoryImpl
|
||||
outbound: RuleOutbound.bypass,
|
||||
),
|
||||
],
|
||||
Region.af => [
|
||||
const SingboxRule(
|
||||
domains: "domain:.af,geosite:af",
|
||||
ip: "geoip:af",
|
||||
outbound: RuleOutbound.bypass,
|
||||
),
|
||||
],
|
||||
_ => <SingboxRule>[],
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user