Skip to content

Commit

Permalink
Release Candidate v0.10.0 (#73)
Browse files Browse the repository at this point in the history
Added support for new Tennis API
Added Dutch language support (thanks @rononline)

Co-authored-by: Ron <[email protected]>
Co-authored-by: Ron Hartman <[email protected]>
  • Loading branch information
3 people authored Dec 18, 2023
1 parent 813139a commit 17523ca
Show file tree
Hide file tree
Showing 3 changed files with 161 additions and 4 deletions.
149 changes: 149 additions & 0 deletions dist/localize/languages/nl.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
export const nl = {
"common": {
"api_error": "API Error",
"no_upcoming_games": "Geen aankomende wedstrijden door %s",
"finalTerm": "%s - Finale",
"byeTerm": "BYE",
"tourney2": "Finale",
"tourney4": "Halve Finales",
"tourney8": "Kwart Finales",
"tourney16": "Achtste Finales",
"tourney32": "Zestiende Finales",
"tourney64": "Tweeendertigste Finale",
"tourney128": "Voorrondes",
"tourney256": "Voorrondes",
"today": "Vandaag",
"tomorrow": "Morgen"
},
"australian-football": {
"startTerm": "Start",
"overUnder": "O/U: %s",
"gameStat1": "%s",
"gameStat2": "%s",
"gameStat3": "",
"gameBar": "Win Probability",
"teamBarLabel": "%s%",
"oppoBarLabel": "%s%"
},
"baseball": {
"startTerm": "Eerste Worp",
"overUnder": "O/U: %s",
"gameStat1": "Ballen %s",
"gameStat2": "Slagen %s",
"gameStat3": "%s Outs",
"gameBar": "Winstwaarschijnlijkheid",
"teamBarLabel": "%s%",
"oppoBarLabel": "%s%"
},
"basketball": {
"startTerm": "Sprongbal",
"overUnder": "O/U: %s",
"gameStat1": "%s",
"gameStat2": "%s",
"gameStat3": "",
"gameBar": "Winstwaarschijnlijkheid",
"teamBarLabel": "%s%",
"oppoBarLabel": "%s%"
},
"cricket": {
"startTerm": "Start",
"overUnder": "O/U: %s",
"gameStat1": "%s",
"gameStat2": "%s",
"gameStat3": "",
"gameBar": "Winstwaarschijnlijkheid",
"teamBarLabel": "%s%",
"oppoBarLabel": "%s%"
},
"football": {
"startTerm": "Aftrap",
"overUnder": "O/U: %s",
"gameStat1": "%s",
"gameStat2": "%s",
"gameStat3": "",
"gameBar": "Winstwaarschijnlijkheid",
"teamBarLabel": "%s%",
"oppoBarLabel": "%s%"
},
"golf": {
"startTerm": "Ronde Start",
"overUnder": "O/U: %s",
"gameStat1": "%s",
"gameStat2": "%s",
"gameStat3": "",
"gameBar": "Schoten (Thru)",
"teamBarLabel": "%s",
"oppoBarLabel": "%s"
},
"hockey": {
"startTerm": "Puck Drop",
"overUnder": "O/U: %s",
"gameStat1": "%s",
"gameStat2": "%s",
"gameStat3": "",
"gameBar": "Schoten op Doel",
"teamBarLabel": "%s",
"oppoBarLabel": "%s"
},
"mma": {
"startTerm": "Start",
"overUnder": "O/U: %s",
"gameStat1": "%s",
"gameStat2": "%s",
"gameStat3": "",
"gameBar": "Winstwaarschijnlijkheid",
"teamBarLabel": "%s%",
"oppoBarLabel": "%s%"
},
"racing": {
"startTerm": "Start",
"overUnder": "O/U: %s",
"gameStat1": "%s",
"gameStat2": "%s",
"gameStat3": "",
"gameBar": "Rondes",
"teamBarLabel": "%s",
"oppoBarLabel": "%s"
},
"soccer": {
"startTerm": "Aftrap",
"overUnder": "O/U: %s",
"gameStat1": "%s",
"gameStat2": "%s",
"gameStat3": "",
"gameBar": "Schoten (Op Doel)",
"teamBarLabel": "%s",
"oppoBarLabel": "%s"
},
"tennis": {
"startTerm": "Eerste Service",
"overUnder": "O/U: %s",
"gameStat1": "%s",
"gameStat2": "%s",
"gameStat3": "",
"gameBar": "%s",
"teamBarLabel": "%s",
"oppoBarLabel": "%s"
},
"volleyball": {
"startTerm": "Eerste Service",
"overUnder": "O/U: %s",
"gameStat1": "%s",
"gameStat2": "%s",
"gameStat3": "",
"gameBar": "%s Score",
"teamBarLabel": "%s",
"oppoBarLabel": "%s"
},
"default": {
"startTerm": "Start",
"overUnder": "O/U: %s",
"gameStat1": "%s",
"gameStat2": "%s",
"gameStat3": "",
"gameBar": "Winstwaarschijnlijkheid",
"teamBarLabel": "%s%",
"oppoBarLabel": "%s%"
}
}

2 changes: 2 additions & 0 deletions dist/localize/translator.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {en_US} from "./languages/en_US.js"
import {es} from "./languages/es.js"
import {es_419} from "./languages/es_419.js"
import {fr} from "./languages/fr.js"
import {nl} from "./languages/nl.js"
import {pt_BR} from "./languages/pt_BR.js"
import {sk} from "./languages/sk.js"
import {sk_SK} from "./languages/sk_SK.js"
Expand All @@ -12,6 +13,7 @@ var languages = {
en_US: en_US,
es: es,
es_419: es_419,
nl: nl,
fr: fr,
pt_BR: pt_BR,
sk: sk,
Expand Down
14 changes: 10 additions & 4 deletions dist/set_sports.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,16 @@ export function setSoccer(t, stateObj, c, team, oppo) {
// timeoutsDisplay = 'inline';
//
export function setTennis(t, stateObj, c, team, oppo) {
c.venue = stateObj.attributes.event_name;
c.pre1 = t.translate("common.tourney" + stateObj.attributes.odds)
c.in1 = c.pre1;
c.finalTerm = stateObj.attributes.clock + " - " + c.gameDatePOST + " (" + c.pre1 + ")";
c.venue = stateObj.attributes.venue;
c.location = stateObj.attributes.location;

c.pre1 = stateObj.attributes.event_name
c.pre2 = stateObj.attributes.overunder
c.pre3 = stateObj.attributes.down_distance_text

c.in1 = c.pre1
c.in2 = c.pre3
c.finalTerm = stateObj.attributes.clock + " - " + c.gameDatePOST + " (" + c.pre3 + ")";

c.gameBar = t.translate("tennis.gameBar", "%s", stateObj.attributes.clock);
c.barLength[team] = stateObj.attributes.team_score;
Expand Down

0 comments on commit 17523ca

Please sign in to comment.