Change font family after changing language in Vue
I am using vue version of Metronic and I want to change font family of whole website when user changes the language (to for example 'es'). Is it even possible? and can I make it use RTL template if user changes language to a RTL language?
Replies (1)
Hi,
You should be able to switch page font by setting fontFamily to the body element.
document.body.style.fontFamily = "you font family name"
To build assets for RTL mode you can refer to our doc:
https://preview.keenthemes.com/metronic8/vue/docs/#/rtl