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