Merge pull request #1097 from SonzaiEkkusu/main

Add Indonesia region
This commit is contained in:
Hiddify
2024-07-25 04:15:15 +02:00
committed by GitHub
3 changed files with 10 additions and 0 deletions

View File

@@ -178,6 +178,7 @@
"cn": "China (cn)",
"ru": "Russia (ru)",
"af": "Afghanistan (af)",
"id": "Indonesia (id)",
"other": "Other"
},
"themeMode": "Theme Mode",

View File

@@ -5,6 +5,7 @@ enum Region {
cn,
ru,
af,
id,
other;
String present(TranslationsEn t) => switch (this) {
@@ -12,6 +13,7 @@ enum Region {
cn => t.settings.general.regions.cn,
ru => t.settings.general.regions.ru,
af => t.settings.general.regions.af,
id => t.settings.general.regions.id,
other => t.settings.general.regions.other,
};
}

View File

@@ -414,6 +414,13 @@ abstract class ConfigOptions {
// outbound: RuleOutbound.bypass,
// ),
// ],
// Region.id => [
// const SingboxRule(
// domains: "domain:.id,geosite:id",
// ip: "geoip:id",
// outbound: RuleOutbound.bypass,
// ),
// ],
// _ => <SingboxRule>[],
// };