0👍
You could have language specific CSS inclusions <link href="..." />
from the respective components for EN and AR as shown below.
routes: [
{
path: '/en',
name: 'Welcome EN...',
component: WelcomeEN
},
{
path: '/ar',
name: 'Welcome AR...',
component: WelcomeAR
}
]
Do you think that would work for you ?
- [Vuejs]-How can I get data from json file using vue js 2?
- [Vuejs]-Cannot read property 'name' of undefined Axios, Vuex
0👍
this is an example of conditional css loading inside a component
// change x to change color
const x = true;
if(x)
require("./assets/style.css");
else
require("./assets/stylegreen.css");
Source:stackexchange.com