blaspix/panda.js-translator — pull request #1 by ekelokorpi (2014-03-06 18:07:18+00:00)
Title: Added support for 1.1.4

Hi,
Nice work on the plugin.

I have now updated Panda.js with better plugin system, config parsing and custom JSON loading.
Everything is now much clearer and better. Here is new improved version of your plugin, that supports 1.1.4 version.

Translator now uses Panda's own preloader to load language json, and you can define it's filename.

There are two ways to change settings.

1) In code:

game.Translator.file = 'media/myfile.json';
game.Translator.lang = 'fi';

2) In `src/game/config.js` file:

translator: {
file: 'media/myfile.json',
lang: 'fi'
}

And of course, if you don't change them, default values will be used.