RTL Mode

RTL Setup in the EJS folder

To have dark mode enabled, replace the reference of app.min.css to app-rtl.min.css and bootstrap.min.css to bootstrap-rtl.min.css and in the views/partials/main.ejs file update the html tag like <html lang="en" dir="rtl">. in the views/partials/head-css.ejs and make sure to update the src/assets/js/app.js has initSettings() function which you need to comment out. Because it will set to default the light version.

Note : Make sure after comment this function run npm run build command in command prompt.

Update the below css file links in the views/partials/head-css.ejs file.

<link href="assets/css/bootstrap-rtl.min.css" rel="stylesheet" type="text/css">
<link href="assets/css/app-rtl.min.css" rel="stylesheet" type="text/css"> 

and add the below attribute in the views/partial/main.ejs file to html tag.
dir="rtl" so you final html tag will be <html dir="rtl">

© Skote.