Skip to content

Commit

Permalink
v0.14.5 (#106)
Browse files Browse the repository at this point in the history
* Update version

* de.js (#105)

* improve formatting (#104)

---------

Co-authored-by: Andreas Brett <[email protected]>
  • Loading branch information
vasqued2 and andreasbrett authored Aug 31, 2024
1 parent e4df459 commit e78b5e6
Show file tree
Hide file tree
Showing 4 changed files with 158 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/const.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export let VERSION = "v0.14.4";
export let VERSION = "v0.14.5";

export let GOLF_HEADSHOT_URL = "https://a.espncdn.com/i/headshots/golf/players/full/";
export let MMA_HEADSHOT_URL = "https://a.espncdn.com/i/headshots/mma/players/full/";
Expand Down
12 changes: 6 additions & 6 deletions src/localize/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
To add a new language
1. Copy the en.js file to the file for the new language.
1. Copy the `en.js` file to the file for the new language.
2. Make the following updates to the new file:
a. Change the variable name to the name of the new language
b. Translate the phrases
3. Make the following change to the translator.js file
a. Import the new language file.
b. Add the new language to the languages object.
- Change the variable name to the name of the new language
- Translate the phrases
3. Make the following change to the `translator.js` file
- Import the new language file.
- Add the new language to the languages object.
148 changes: 148 additions & 0 deletions src/localize/languages/de.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
export const de = {
"common": {
"api_error": "API Error",
"no_upcoming_games": "Keine anstehenden Spiele bis %s",
"finalTerm": "%s - Endergebnis",
"byeTerm": "BYE",
"tourney2": "Finale",
"tourney4": "Halbfinale",
"tourney8": "Viertelfinale",
"tourney16": "Achtelfinale",
"tourney32": "Sechzehntelfinale",
"tourney64": "Vorrunde",
"tourney128": "Vorrunde",
"tourney256": "Vorrunde",
"today": "Heute",
"tomorrow": "Morgen"
},
"australian-football": {
"startTerm": "Start",
"overUnder": "O/U: %s",
"gameStat1": "%s",
"gameStat2": "%s",
"gameStat3": "",
"gameBar": "Gewinnchance",
"teamBarLabel": "%s%",
"oppoBarLabel": "%s%"
},
"baseball": {
"startTerm": "First Pitch",
"overUnder": "O/U: %s",
"gameStat1": "Balls %s",
"gameStat2": "Strikes %s",
"gameStat3": "%s Outs",
"gameBar": "Gewinnchance",
"teamBarLabel": "%s%",
"oppoBarLabel": "%s%"
},
"basketball": {
"startTerm": "Tipoff",
"overUnder": "O/U: %s",
"gameStat1": "%s",
"gameStat2": "%s",
"gameStat3": "",
"gameBar": "Gewinnchance",
"teamBarLabel": "%s%",
"oppoBarLabel": "%s%"
},
"cricket": {
"startTerm": "Start",
"overUnder": "O/U: %s",
"gameStat1": "%s",
"gameStat2": "%s",
"gameStat3": "",
"gameBar": "Gewinnchance",
"teamBarLabel": "%s%",
"oppoBarLabel": "%s%"
},
"football": {
"startTerm": "Kickoff",
"overUnder": "O/U: %s",
"gameStat1": "%s",
"gameStat2": "%s",
"gameStat3": "",
"gameBar": "Gewinnchance",
"teamBarLabel": "%s%",
"oppoBarLabel": "%s%"
},
"golf": {
"startTerm": "Round Starts",
"overUnder": "O/U: %s",
"gameStat1": "%s",
"gameStat2": "%s",
"gameStat3": "",
"gameBar": "Shots (Thru)",
"teamBarLabel": "%s",
"oppoBarLabel": "%s"
},
"hockey": {
"startTerm": "Puck Drop",
"overUnder": "O/U: %s",
"gameStat1": "%s",
"gameStat2": "%s",
"gameStat3": "",
"gameBar": "Torschüsse",
"teamBarLabel": "%s",
"oppoBarLabel": "%s"
},
"mma": {
"startTerm": "Start",
"overUnder": "O/U: %s",
"gameStat1": "%s",
"gameStat2": "%s",
"gameStat3": "",
"gameBar": "Gewinnchance",
"teamBarLabel": "%s%",
"oppoBarLabel": "%s%"
},
"racing": {
"startTerm": "Start",
"overUnder": "O/U: %s",
"gameStat1": "%s",
"gameStat2": "%s",
"gameStat3": "",
"gameBar": "Runden",
"teamBarLabel": "%s",
"oppoBarLabel": "%s"
},
"soccer": {
"startTerm": "Anstoß",
"overUnder": "O/U: %s",
"gameStat1": "%s",
"gameStat2": "%s",
"gameStat3": "",
"gameBar": "Torschüsse",
"teamBarLabel": "%s",
"oppoBarLabel": "%s"
},
"tennis": {
"startTerm": "First Serve",
"overUnder": "O/U: %s",
"gameStat1": "%s",
"gameStat2": "%s",
"gameStat3": "",
"gameBar": "%s",
"teamBarLabel": "%s",
"oppoBarLabel": "%s"
},
"volleyball": {
"startTerm": "Aufschlag",
"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": "Gewinnchance",
"teamBarLabel": "%s%",
"oppoBarLabel": "%s%"
}
}
4 changes: 3 additions & 1 deletion src/localize/translator.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import {de} from "./languages/de.js"
import {en} from "./languages/en.js"
import {en_US} from "./languages/en_US.js"
import {es} from "./languages/es.js"
Expand All @@ -10,6 +11,7 @@ import {sk} from "./languages/sk.js"
import {sk_SK} from "./languages/sk_SK.js"

var languages = {
de: de,
en: en,
en_US: en_US,
es: es,
Expand All @@ -19,7 +21,7 @@ var languages = {
it: it,
pt_BR: pt_BR,
sk: sk,
sk_SK: sk_SK,
sk_SK: sk_SK,
};

export class Translator {
Expand Down

0 comments on commit e78b5e6

Please sign in to comment.