koreezgames / phaser3-i18n-plugin

Phaser3 i18n Plugin
MIT License
22 stars 8 forks source link

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

Open PavelMishin opened 5 years ago

PavelMishin commented 5 years ago

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