Skip to content

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

@PavelMishin

Description

@PavelMishin

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

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