Refactor to remove duplicated code and add translations to the root directory
This commit is contained in:
17
locales/en.json
Normal file
17
locales/en.json
Normal file
@ -0,0 +1,17 @@
|
||||
{
|
||||
"snake": {
|
||||
"score": "Score",
|
||||
"gameOver": "Game Over!",
|
||||
"anyKey": "Press any key to play again"
|
||||
},
|
||||
"tanks": {
|
||||
"playerWon": "Player %{num} won!",
|
||||
"player": "Player %{number}",
|
||||
"health": "Health %{value}",
|
||||
"angle": "Angle %{value}"
|
||||
},
|
||||
"spacecraft": {
|
||||
"score": "Score"
|
||||
}
|
||||
}
|
||||
|
16
locales/es.json
Normal file
16
locales/es.json
Normal file
@ -0,0 +1,16 @@
|
||||
{
|
||||
"snake": {
|
||||
"score": "Puntaje",
|
||||
"gameOver": "¡Se acabó el juego!",
|
||||
"anyKey": "Presioná cualquier tecla para jugar nuevamente"
|
||||
},
|
||||
"tanks": {
|
||||
"playerWon": "¡Ha ganado el jugador %{name}!",
|
||||
"player": "Jugador %{number}",
|
||||
"health": "Salud %{value}",
|
||||
"angle": "Ángulo %{value}"
|
||||
},
|
||||
"spacecraft": {
|
||||
"score": "Puntaje"
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user