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)", "cn": "China (cn)",
"ru": "Russia (ru)", "ru": "Russia (ru)",
"af": "Afghanistan (af)", "af": "Afghanistan (af)",
"id": "Indonesia (id)",
"other": "Other" "other": "Other"
}, },
"themeMode": "Theme Mode", "themeMode": "Theme Mode",

View File

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

View File

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