Skip to content

Commit

Permalink
Pull request for spanish #78 (#79)
Browse files Browse the repository at this point in the history
* Added spanish translation

* delete typo

* Added messages in spanish

* Add caballow to content_scripts

* Fix name of showJumping in es
  • Loading branch information
AndreaMendez09 authored Apr 16, 2024
1 parent a3567c8 commit 850e6ea
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 2 deletions.
22 changes: 22 additions & 0 deletions _locales/es/messages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"appName": {
"message": "Better Caballow",
"description": "Nombre de la extensión."
},
"appDesc": {
"message": "Esta extensión muestra más información en el juego sobre caballos y competiciones para que te sientas más cómodo al jugar.",
"description": "Descripción de la extensión."
},
"foodSelect": {
"message": "Auto Selección de Comida",
"description": "Label para la casilla de selección de comida."
},
"moreInfos": {
"message": "Más Info",
"description": "Label para la casilla más información."
},
"competitionRatio": {
"message": "Ratio de Competición ",
"description": "Label para el ratio de competición."
}
}
3 changes: 2 additions & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"*://*.equideow.com/*",
"*://*.howrse.com/*",
"*://*.howrse.no/*",
"*://*.howrse.co.uk/*"
"*://*.howrse.co.uk/*",
"*://*.caballow.com/*"
],
"run_at": "document_end",
"js": [
Expand Down
31 changes: 30 additions & 1 deletion translation.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,34 @@ class Translation {
pg: 'GP: ',
skills: 'Skills: '
}
},
es: {
stat: {
stamina: 'resistencia',
speed: 'velocidad',
dressage: 'doma',
gallop: 'galope',
trot: 'trote',
jumping: 'salto'
},
competition: {
trot: 'Trote',
gallop: 'Galope',
dressage: 'Doma',
crossCountry: 'Cross',
showJumping: 'Carrera de obstáculos',
barrelRacing: 'Barrel racing',
cutting: 'Cutting',
trailClass: 'Trail class',
reining: 'Reining',
westernPleasure: 'Western pleasure',
disclaimer: 'Cuanto mayores sean las habilidades, mayores serán las posibilidades de ganar'
},
other: {
pet: 'Mascota: ',
pg: 'PG: ',
skills: 'Habilidades: '
}
}
}
}
Expand All @@ -122,7 +150,8 @@ class Translation {
const languageMap = {
'equideow': 'fr',
'howrse.no': 'no',
'howrse.pl': 'pl'
'howrse.pl': 'pl',
'caballow.com': 'es'
};

for (let domain in languageMap) {
Expand Down

0 comments on commit 850e6ea

Please sign in to comment.