Translating the game

Translate the game couldn’t be easier. Just add new languages in the locale section of the config file.

For example, let’s say you want to translate the game to spanish, the configuration file would be:

{

    // other options here...

    "locale": {
        "es": {
            "START": "JUGAR",
            "GAME_OVER": "Fin del juego",
            "MENU": "Menú",
            "PLAY_AGAIN": "Jugar otra vez",
            "CORRECT_BUTTON_MSG": "Era el"
        }
    }
}

That’s all.

The game will load the appropriate language automatically depending on the browser settings.

Related Topics

This Page