Page MenuHomePhabricator

Change Wikistats UI language without reloading the page
Open, HighPublic

Description

Even though it's a pretty common practice to reload the page when the site language is changed, it's not particularly great for folks with bad internet.

Replacing the locale and the messages dynamically should be easy with the the Vue i18n library we use, so the only thing needed to do would be to make sure we have the language files as jsons in a directory like dist/assets-v2/i18n, and, when the language state changes in the app, load the appropriate language file and replace it in Vue without needing to reload anything else.