Hi there
I have a multilingual web app . I need to switch between rtl and ltr version according to user language . how can i do this in blazor at runtime ?
Hi,
Sorry for the late reply.
Currently, Metronic Blazor Starterkit does not have functionality to switch directions at runtime. However, you can implement direction switching in JavaScript yourself.
The script should handle the following:
1. Change direction attributes on HTML elements.
dir="rtl" direction="rtl"
<link href="assets/plugins/custom/fullcalendar/fullcalendar.bundle.css" rel="stylesheet" type="text/css">
<link href="assets/plugins/custom/datatables/datatables.bundle.css" rel="stylesheet" type="text/css">
<link href="assets/plugins/global/plugins.bundle.css" rel="stylesheet" type="text/css">
<link href="assets/css/style.bundle.css" rel="stylesheet" type="text/css">
<link href="assets/plugins/custom/fullcalendar/fullcalendar.bundle.css" rel="stylesheet" type="text/css">
<link href="assets/plugins/custom/datatables/datatables.bundle.rtl.css" rel="stylesheet" type="text/css">
<link href="assets/plugins/global/plugins.bundle.rtl.css" rel="stylesheet" type="text/css">
<link href="assets/css/style.bundle.rtl.css" rel="stylesheet" type="text/css">