Skip to content

changeLanguage does not work for me #26

@domofclarkes

Description

@domofclarkes

My app is a video game prototype with UI done in Vue/ts.
Using i18next-vue, I can set the language after init no problem and it works for each language.
The problem is when I try to change language at runtime.
The changeLanguage function never returns it's promise.
I put a timeout on it and it times out.
Any idea why this would happen?

There are no errors logged, nothing to indicate that there is anything wrong with my setup.

I am logging the current language before I try to change it, and it's valid. Nothing seems suspect with the i18next-vue setup from what I can see.

The translations are statically defined to help testing.
All the translations for the starting language work fine.
It's just changing language that is causing a problem.

Expected behavior

The language changes

Your Environment

  • i18next version: 24.2.2
  • Windows
  • not a browser. A windows video game using a web UI

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