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

Interpolations doesn't work with text created through class inheritance #32

Open
PavelMishin opened this issue Sep 11, 2019 · 0 comments

Comments

@PavelMishin
Copy link

PavelMishin commented Sep 11, 2019

If a text creates by extending from game object class the text key works fine, but interpolations don't work at all.

Example:

export default class Text extends Phaser.GameObjects.BitmapText {
    constructor(scene, x, y, font, text, size, interpolations) {
        super(scene, x, y, font, text, style.size, interpolations)
}

Console output:
i18next::interpolator: missed to pass in variable input for interpolating {{input}} to activate window

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