Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing regions #56

Merged
merged 2 commits into from
Aug 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 17 additions & 5 deletions api/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,13 @@ const (
RegionLatinAmericaSouth Region = "la2"
RegionNorthAmerica Region = "na1"
RegionOceania Region = "oc1"
RegionTurkey Region = "tr1"
RegionRussia Region = "ru"
RegionPBE Region = "pbe1"
RegionPhilippines Region = "ph2"
RegionRussia Region = "ru"
RegionSingapore Region = "sg2"
RegionThailand Region = "th2"
RegionTurkey Region = "tr1"
RegionTaiwan Region = "tw2"
RegionVietnam Region = "vn2"
)

Expand All @@ -43,9 +47,13 @@ var (
RegionLatinAmericaSouth,
RegionNorthAmerica,
RegionOceania,
RegionTurkey,
RegionRussia,
RegionPBE,
RegionPhilippines,
RegionRussia,
RegionSingapore,
RegionThailand,
RegionTurkey,
RegionTaiwan,
RegionVietnam,
}

Expand All @@ -60,8 +68,12 @@ var (
RegionLatinAmericaSouth: RouteAmericas,
RegionNorthAmerica: RouteAmericas,
RegionOceania: RouteAmericas,
RegionTurkey: RouteEurope,
RegionPhilippines: RouteSEA,
RegionRussia: RouteEurope,
RegionSingapore: RouteSEA,
RegionThailand: RouteSEA,
RegionTurkey: RouteEurope,
RegionTaiwan: RouteSEA,
RegionVietnam: RouteSEA,
}
)
2 changes: 1 addition & 1 deletion datadragon/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const (
LanguageCodeRepublicOfThePhilippines = "en_PH"
LanguageCodeSingapore = "en_SG"
LanguageCodeThailand = "th_TH"
LanguageCodeVietnam = "vn_VN"
LanguageCodeVietnam = "vi_VN"
LanguageCodeIndonesia = "id_ID"
LanguageCodeMalaysiaChinese = "zh_MY"
LanguageCodeChina = "zh_CN"
Expand Down
7 changes: 6 additions & 1 deletion datadragon/data_dragon.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const (

var (
regionToRealmRegion = map[api.Region]string{
api.RegionBrasil: "br",
api.RegionEuropeWest: "euw",
api.RegionEuropeNorthEast: "eun",
api.RegionJapan: "jp",
Expand All @@ -34,9 +35,13 @@ var (
api.RegionNorthAmerica: "na",
api.RegionOceania: "oce",
api.RegionPBE: "pbe",
api.RegionPhilippines: "ph",
api.RegionRussia: "ru",
api.RegionSingapore: "sg",
api.RegionThailand: "th",
api.RegionTurkey: "tr",
api.RegionBrasil: "br",
api.RegionTaiwan: "tw",
api.RegionVietnam: "vn",
}
)

Expand Down
Loading