Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

call 18n after init #33

Open
robertobrogi opened this issue Sep 16, 2019 · 0 comments
Open

call 18n after init #33

robertobrogi opened this issue Sep 16, 2019 · 0 comments

Comments

@robertobrogi
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant