Skip to content

Commit

Permalink
feat(config): add malaysia country zone (#7249)
Browse files Browse the repository at this point in the history
* feat(config): add malaysia country zone

* add translation

* Update contributors

* hide MY-EM on non-yearly views

* add translations

* some final cleanup

* prettier

---------

Co-authored-by: tonypls <tonyvanswet@gmail.com>
Co-authored-by: Viktor Andersson <30777521+VIKTORVAV99@users.noreply.github.com>
  • Loading branch information
3 people authored Oct 1, 2024
1 parent 1922de8 commit 8d14179
Show file tree
Hide file tree
Showing 31 changed files with 109 additions and 1 deletion.
7 changes: 7 additions & 0 deletions config/exchanges/MY_SG.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
capacity:
- -450
- 450
lonlat:
- 103.539048
- 2.016154
rotation: 155
7 changes: 7 additions & 0 deletions config/exchanges/MY_TH.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
capacity:
- -330
- 330
lonlat:
- 101.454422
- 5.867743
rotation: 0
5 changes: 5 additions & 0 deletions config/zones/MY-EM.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
aggregates_displayed:
- yearly # The estimation model will only have variation at a yearly aggregation
country: MY
contributors:
- FelixDQ
estimation_method: CONSTRUCT_BREAKDOWN
region: Asia
timezone: Asia/Kuala_Lumpur
2 changes: 1 addition & 1 deletion config/zones/MY-WM.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -200,4 +200,4 @@ parsers:
production: GSO.fetch_production
productionCapacity: MY_WM.fetch_production_capacity
region: Asia
timezone: null
timezone: Asia/Kuala_Lumpur
11 changes: 11 additions & 0 deletions config/zones/MY.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
country: MY
disclaimer: 'This zone is partially using fully estimated data from MY-EM'
estimation_method:
CONSTRUCT_BREAKDOWN
# We need either a parser or a estimation method for the frontend to display any data.
# This just has to be a truthy value but we'll use the same as the subzone estimation method for simplicity.
subZoneNames:
- MY-WM
- MY-EM
region: Asia
timezone: Asia/Kuala_Lumpur
3 changes: 3 additions & 0 deletions web/public/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -938,6 +938,9 @@
"countryName": "Mexico",
"zoneName": "Peninsula"
},
"MY": {
"zoneName": "Malaysia"
},
"MY-EM": {
"countryName": "Malaysia",
"zoneName": "Borneo"
Expand Down
3 changes: 3 additions & 0 deletions web/src/locales/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -1018,6 +1018,9 @@
"countryName": "Mexiko",
"zoneName": "Poloostrov"
},
"MY": {
"zoneName": "Malajsie"
},
"MY-EM": {
"countryName": "Malajsie",
"zoneName": "Borneo"
Expand Down
3 changes: 3 additions & 0 deletions web/src/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -1059,6 +1059,9 @@
"MX": {
"zoneName": "Mexiko"
},
"MY": {
"zoneName": "Malaysia"
},
"MY-EM": {
"countryName": "Malaysia",
"zoneName": "Sabah und Sarawak"
Expand Down
3 changes: 3 additions & 0 deletions web/src/locales/el.json
Original file line number Diff line number Diff line change
Expand Up @@ -973,6 +973,9 @@
"countryName": "Μεξικό",
"zoneName": "Peninsula"
},
"MY": {
"zoneName": "Μαλαισία"
},
"MY-EM": {
"countryName": "Μαλαισία",
"zoneName": "Borneo"
Expand Down
3 changes: 3 additions & 0 deletions web/src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1408,6 +1408,9 @@
"countryName": "Mexico",
"zoneName": "Peninsula"
},
"MY": {
"zoneName": "Malaysia"
},
"MY-EM": {
"countryName": "Malaysia",
"zoneName": "Borneo"
Expand Down
3 changes: 3 additions & 0 deletions web/src/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -1139,6 +1139,9 @@
"countryName": "México",
"zoneName": "Peninsula"
},
"MY": {
"zoneName": "Malasia"
},
"MY-EM": {
"countryName": "Malasia",
"zoneName": "Borneo"
Expand Down
3 changes: 3 additions & 0 deletions web/src/locales/et.json
Original file line number Diff line number Diff line change
Expand Up @@ -1052,6 +1052,9 @@
"countryName": "Mehhiko",
"zoneName": "Peninsula"
},
"MY": {
"zoneName": "Malaisia"
},
"MY-EM": {
"countryName": "Malaisia",
"zoneName": "Borneo"
Expand Down
3 changes: 3 additions & 0 deletions web/src/locales/fi.json
Original file line number Diff line number Diff line change
Expand Up @@ -1017,6 +1017,9 @@
"countryName": "Meksiko",
"zoneName": "Niemi"
},
"MY": {
"zoneName": "Malesia"
},
"MY-EM": {
"countryName": "Malesia",
"zoneName": "Borneo"
Expand Down
3 changes: 3 additions & 0 deletions web/src/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -1399,6 +1399,9 @@
"countryName": "Mexique",
"zoneName": "Péninsule"
},
"MY": {
"zoneName": "Malaisie"
},
"MY-EM": {
"countryName": "Malaisie",
"zoneName": "Borneo"
Expand Down
3 changes: 3 additions & 0 deletions web/src/locales/hr.json
Original file line number Diff line number Diff line change
Expand Up @@ -1015,6 +1015,9 @@
"countryName": "Meksiko",
"zoneName": "Poluotok"
},
"MY": {
"zoneName": "Malezija"
},
"MY-EM": {
"countryName": "Malezija",
"zoneName": "Borneo"
Expand Down
3 changes: 3 additions & 0 deletions web/src/locales/id.json
Original file line number Diff line number Diff line change
Expand Up @@ -1017,6 +1017,9 @@
"countryName": "Meksiko",
"zoneName": "Peninsula"
},
"MY": {
"zoneName": "Malaysia"
},
"MY-EM": {
"countryName": "Malaysia",
"zoneName": "Borneo"
Expand Down
3 changes: 3 additions & 0 deletions web/src/locales/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -1122,6 +1122,9 @@
"countryName": "Messico",
"zoneName": "Penisola"
},
"MY": {
"zoneName": "Malesia"
},
"MY-EM": {
"countryName": "Malesia",
"zoneName": "Borneo"
Expand Down
3 changes: 3 additions & 0 deletions web/src/locales/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -1013,6 +1013,9 @@
"countryName": "メキシコ",
"zoneName": "半島部"
},
"MY": {
"zoneName": "マレーシア"
},
"MY-EM": {
"countryName": "マレーシア",
"zoneName": "ボルネオ"
Expand Down
3 changes: 3 additions & 0 deletions web/src/locales/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -1009,6 +1009,9 @@
"countryName": "멕시코",
"zoneName": "반도"
},
"MY": {
"zoneName": "말레이시아"
},
"MY-EM": {
"countryName": "말레이시아",
"zoneName": "보르네오"
Expand Down
3 changes: 3 additions & 0 deletions web/src/locales/no-NB.json
Original file line number Diff line number Diff line change
Expand Up @@ -1180,6 +1180,9 @@
"countryName": "Mexico",
"zoneName": "Halvøya"
},
"MY": {
"zoneName": "Malaysia"
},
"MY-EM": {
"countryName": "Malaysia",
"zoneName": "Borneo"
Expand Down
3 changes: 3 additions & 0 deletions web/src/locales/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -808,6 +808,9 @@
"countryName": "Meksyk",
"zoneName": "Meksyk Południowo Wschodni"
},
"MY": {
"zoneName": "Malezja"
},
"MY-EM": {
"countryName": "Malezja",
"zoneName": "Borneo"
Expand Down
3 changes: 3 additions & 0 deletions web/src/locales/pt-BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -1044,6 +1044,9 @@
"countryName": "México",
"zoneName": "Península"
},
"MY": {
"zoneName": "Malaysia"
},
"MY-EM": {
"countryName": "Malaysia",
"zoneName": "Borneo"
Expand Down
3 changes: 3 additions & 0 deletions web/src/locales/pt-PT.json
Original file line number Diff line number Diff line change
Expand Up @@ -1340,6 +1340,9 @@
"countryName": "México",
"zoneName": "Península"
},
"MY": {
"zoneName": "Malásia"
},
"MY-EM": {
"countryName": "Malásia",
"zoneName": "Borneo"
Expand Down
3 changes: 3 additions & 0 deletions web/src/locales/ro.json
Original file line number Diff line number Diff line change
Expand Up @@ -1072,6 +1072,9 @@
"countryName": "Mexico",
"zoneName": "Peninsula"
},
"MY": {
"zoneName": "Malaysia"
},
"MY-EM": {
"countryName": "Malaysia",
"zoneName": "Borneo"
Expand Down
3 changes: 3 additions & 0 deletions web/src/locales/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -805,6 +805,9 @@
"MX": {
"zoneName": "Мексика"
},
"MY": {
"zoneName": "Малайзия"
},
"MY-EM": {
"countryName": "Малайзия",
"zoneName": "Борнео"
Expand Down
3 changes: 3 additions & 0 deletions web/src/locales/sk.json
Original file line number Diff line number Diff line change
Expand Up @@ -1009,6 +1009,9 @@
"countryName": "Mexiko",
"zoneName": "Poloostrov"
},
"MY": {
"zoneName": "Malajzia"
},
"MY-EM": {
"countryName": "Malajzia",
"zoneName": "Borneo"
Expand Down
3 changes: 3 additions & 0 deletions web/src/locales/sl.json
Original file line number Diff line number Diff line change
Expand Up @@ -1100,6 +1100,9 @@
"countryName": "Mehika",
"zoneName": "Polotok Jukatan"
},
"MY": {
"zoneName": "Malezija"
},
"MY-EM": {
"countryName": "Malezija",
"zoneName": "Borneo"
Expand Down
3 changes: 3 additions & 0 deletions web/src/locales/sv.json
Original file line number Diff line number Diff line change
Expand Up @@ -1380,6 +1380,9 @@
"countryName": "Mexico",
"zoneName": "Peninsula"
},
"MY": {
"zoneName": "Malaysia"
},
"MY-EM": {
"countryName": "Malaysia",
"zoneName": "Borneo"
Expand Down
3 changes: 3 additions & 0 deletions web/src/locales/vi.json
Original file line number Diff line number Diff line change
Expand Up @@ -915,6 +915,9 @@
"countryName": "Mexico",
"zoneName": "Peninsula"
},
"MY": {
"zoneName": "Malaysia"
},
"MY-EM": {
"countryName": "Malaysia",
"zoneName": "Borneo"
Expand Down
3 changes: 3 additions & 0 deletions web/src/locales/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -1010,6 +1010,9 @@
"countryName": "墨西哥",
"zoneName": "半岛"
},
"MY": {
"zoneName": "马来西亚"
},
"MY-EM": {
"countryName": "马来西亚",
"zoneName": "婆罗洲"
Expand Down
3 changes: 3 additions & 0 deletions web/src/locales/zh-TW.json
Original file line number Diff line number Diff line change
Expand Up @@ -1288,6 +1288,9 @@
"countryName": "墨西哥",
"zoneName": "半島"
},
"MY": {
"zoneName": "馬來西亞"
},
"MY-EM": {
"countryName": "馬來西亞",
"zoneName": "婆羅洲"
Expand Down

0 comments on commit 8d14179

Please sign in to comment.