You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
on clientside this is rather easy. If you don't pass language to init the detected language fill be detected and avaiable when the init call back is called: i18next.lng().
on the serverside the current language is set per request, so grab it from the request object req.lng.
i'm not sure but i think moment itself is a singleton - so setting it's language should be done just before using it (if you got some async stuff inside your route handling - else another request could overwrite the current set language in moment.js resulting in wrong localization).
Does anyone know a way to sync the language selection between i18next and moment.js? I mean something like:
It should be automatic switch the language of moment.js when i18n switch to a new language.
Thanks
The text was updated successfully, but these errors were encountered: