From 9fdbfcdeec65e8cc4adc4f001fb04d1d5bc3e255 Mon Sep 17 00:00:00 2001 From: Harmon Herring Date: Sat, 26 Aug 2023 02:59:00 -0400 Subject: [PATCH 1/2] Add sea regions --- api/constants.go | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/api/constants.go b/api/constants.go index 30e75b0..9a4c2c7 100644 --- a/api/constants.go +++ b/api/constants.go @@ -14,10 +14,14 @@ const ( RegionLatinAmericaSouth Region = "la2" RegionNorthAmerica Region = "na1" RegionOceania Region = "oc1" - RegionTurkey Region = "tr1" + RegionPhilippines Region = "ph2" RegionRussia Region = "ru" - RegionPBE Region = "pbe1" + RegionSingapore Region = "sg2" + RegionThailand Region = "th2" + RegionTurkey Region = "tr1" + RegionTaiwan Region = "tw2" RegionVietnam Region = "vn2" + RegionPBE Region = "pbe1" ) // Route represents a server region's route @@ -43,10 +47,14 @@ var ( RegionLatinAmericaSouth, RegionNorthAmerica, RegionOceania, - RegionTurkey, + RegionPhilippines, RegionRussia, - RegionPBE, + RegionSingapore, + RegionThailand, + RegionTurkey, + RegionTaiwan, RegionVietnam, + RegionPBE, } // RegionToRoute maps each region to its route @@ -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, } ) From 495532fdb9c76fe206a6b120c4db7b0f327749a5 Mon Sep 17 00:00:00 2001 From: Harmon Herring Date: Sat, 26 Aug 2023 11:47:52 -0400 Subject: [PATCH 2/2] Add sea regions to datadragon; fix VN language code --- api/constants.go | 4 ++-- datadragon/constants.go | 2 +- datadragon/data_dragon.go | 7 ++++++- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/api/constants.go b/api/constants.go index 9a4c2c7..5719392 100644 --- a/api/constants.go +++ b/api/constants.go @@ -14,6 +14,7 @@ const ( RegionLatinAmericaSouth Region = "la2" RegionNorthAmerica Region = "na1" RegionOceania Region = "oc1" + RegionPBE Region = "pbe1" RegionPhilippines Region = "ph2" RegionRussia Region = "ru" RegionSingapore Region = "sg2" @@ -21,7 +22,6 @@ const ( RegionTurkey Region = "tr1" RegionTaiwan Region = "tw2" RegionVietnam Region = "vn2" - RegionPBE Region = "pbe1" ) // Route represents a server region's route @@ -47,6 +47,7 @@ var ( RegionLatinAmericaSouth, RegionNorthAmerica, RegionOceania, + RegionPBE, RegionPhilippines, RegionRussia, RegionSingapore, @@ -54,7 +55,6 @@ var ( RegionTurkey, RegionTaiwan, RegionVietnam, - RegionPBE, } // RegionToRoute maps each region to its route diff --git a/datadragon/constants.go b/datadragon/constants.go index 450f180..29fbc9b 100644 --- a/datadragon/constants.go +++ b/datadragon/constants.go @@ -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" diff --git a/datadragon/data_dragon.go b/datadragon/data_dragon.go index b976faa..29cb858 100644 --- a/datadragon/data_dragon.go +++ b/datadragon/data_dragon.go @@ -25,6 +25,7 @@ const ( var ( regionToRealmRegion = map[api.Region]string{ + api.RegionBrasil: "br", api.RegionEuropeWest: "euw", api.RegionEuropeNorthEast: "eun", api.RegionJapan: "jp", @@ -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", } )