koreezgames / phaser3-i18n-plugin

Phaser3 i18n Plugin
MIT License
22 stars 8 forks source link

call 18n after init #33

Open robertobrogi opened 5 years ago

robertobrogi commented 5 years ago

Hi all, just an info....

after init wich is the command for use i18n?? i have the preload method where i make the init i18n is possible to call 18n in create method?

` preload() { this.i18n.initialize( { fallbackLng: 'it', loadPath: "assets/i18n/{{lng}}/{{ns}}.json", debug: false, }, () => { console.log('I18nPlugin initialized!') }, ) }

create(){
    this.add.text(10, 10, ??'Ui.Hello'??, { font: '48px Arial', fill: '#fff' });
}

`

big thanks