Skip to content

call 18n after init #33

@robertobrogi

Description

@robertobrogi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions