To set locale to 'fr', you need to modify the locale
value in VueI18n instance, like this:
index.tsx262 chars15 lines
Here, the locale
of the i18n
object has been set to 'fr'
.
For this to work you need to have imported the vue-i18n
module and the messages
object with the French translations.
Note: if fr
translations are not available in the messages.js
, an error will occur.
gistlibby LogSnag