Mikhail Chibel
Mikhail Chibel

Reputation: 1955

i18next reload translation without reinit

I'm using I18next with the Backend plugin. My question is how to force the Backend plugin to reload translation for a particular language/namespace. The similar question regarding this nodejs plugin was asked two years ago here, my question is about the Backend plugin.

Upvotes: 4

Views: 5552

Answers (1)

Christian
Christian

Reputation: 1683

Newer versions of i18next come with i18next.reloadResources() to reload the resources from the backend. You can optionally specify the language and/or namespaces to reload.

Further docs: https://www.i18next.com/overview/api#reloadresources

Upvotes: 4

Related Questions