Skip to content

Commit

Permalink
Adds swedish translation (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
PhPersson authored Sep 1, 2024
1 parent bf4111e commit ab5ae12
Show file tree
Hide file tree
Showing 2 changed files with 147 additions and 0 deletions.
145 changes: 145 additions & 0 deletions src/localize/languages/sv.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
export const sv = {
"common": {
"api_error": "API Error",
"no_upcoming_games": "Inga kommande matcher %s",
"finalTerm": "%s - Final",
"byeTerm": "BYE",
"tourney2": "Final",
"tourney4": "Semifinaler",
"tourney8": "Kvartsfinaler",
"tourney16": "Åttondelsfinal",
"tourney32": "Sextondelsfinal",
"today": "Idag",
"tomorrow": "Imorgon"
},
"australian-football": {
"startTerm": "Start",
"overUnder": "O/U: %s",
"gameStat1": "%s",
"gameStat2": "%s",
"gameStat3": "",
"gameBar": "Vinstsannolikhet",
"teamBarLabel": "%s%",
"oppoBarLabel": "%s%"
},
"baseball": {
"startTerm": "Första pitch",
"overUnder": "O/U: %s",
"gameStat1": "Bollar %s",
"gameStat2": "Strikes %s",
"gameStat3": "%s Outs",
"gameBar": "Vinstsannolikhet",
"teamBarLabel": "%s%",
"oppoBarLabel": "%s%"
},
"basketball": {
"startTerm": "Avkast",
"overUnder": "O/U: %s",
"gameStat1": "%s",
"gameStat2": "%s",
"gameStat3": "",
"gameBar": "Vinstsannolikhet",
"teamBarLabel": "%s%",
"oppoBarLabel": "%s%"
},
"cricket": {
"startTerm": "Start",
"overUnder": "O/U: %s",
"gameStat1": "%s",
"gameStat2": "%s",
"gameStat3": "",
"gameBar": "Vinstsannolikhet",
"teamBarLabel": "%s%",
"oppoBarLabel": "%s%"
},
"football": {
"startTerm": "Avspark",
"overUnder": "O/U: %s",
"gameStat1": "%s",
"gameStat2": "%s",
"gameStat3": "",
"gameBar": "Vinstsannolikhet",
"teamBarLabel": "%s%",
"oppoBarLabel": "%s%"
},
"golf": {
"startTerm": "Omgången startar",
"overUnder": "O/U: %s",
"gameStat1": "%s",
"gameStat2": "%s",
"gameStat3": "",
"gameBar": "Shots (Thru)",
"teamBarLabel": "%s",
"oppoBarLabel": "%s"
},
"hockey": {
"startTerm": "Start",
"overUnder": "O/U: %s",
"gameStat1": "%s",
"gameStat2": "%s",
"gameStat3": "",
"gameBar": "Skott på mål",
"teamBarLabel": "%s",
"oppoBarLabel": "%s"
},
"mma": {
"startTerm": "Start",
"overUnder": "O/U: %s",
"gameStat1": "%s",
"gameStat2": "%s",
"gameStat3": "",
"gameBar": "Vinstsannolikhet",
"teamBarLabel": "%s%",
"oppoBarLabel": "%s%"
},
"racing": {
"startTerm": "Start",
"overUnder": "O/U: %s",
"gameStat1": "%s",
"gameStat2": "%s",
"gameStat3": "",
"gameBar": "Varv",
"teamBarLabel": "%s",
"oppoBarLabel": "%s"
},
"soccer": {
"startTerm": "Avspark",
"overUnder": "O/U: %s",
"gameStat1": "%s",
"gameStat2": "%s",
"gameStat3": "",
"gameBar": "Skott (på mål)",
"teamBarLabel": "%s",
"oppoBarLabel": "%s"
},
"tennis": {
"startTerm": "Första serve",
"overUnder": "O/U: %s",
"gameStat1": "%s",
"gameStat2": "%s",
"gameStat3": "",
"gameBar": "%s",
"teamBarLabel": "%s",
"oppoBarLabel": "%s"
},
"volleyball": {
"startTerm": "Första serve",
"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": "Vinstsannolikhet",
"teamBarLabel": "%s%",
"oppoBarLabel": "%s%"
}
}
2 changes: 2 additions & 0 deletions src/localize/translator.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ 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"
import {sv} from "./languages/sv.js"

var languages = {
de: de,
Expand All @@ -24,6 +25,7 @@ var languages = {
pt_BR: pt_BR,
sk: sk,
sk_SK: sk_SK,
sv: sv,
};

export class Translator {
Expand Down

0 comments on commit ab5ae12

Please sign in to comment.