I have a web application with radzen blazor studio. I added localization to the application. So it added CulturePicker.Razor page and CulturePicker.cs class.
This was the CulturePicker.cs class
<RadzenDropDown @bind-Value="@culture" TValue="string" Data="@(new [] { new { Text = "العربية (المملكةالعربيةالسعودية)", Value = "ar-SA"}, new { Text = "English", Value = "en" } })" TextProperty="Text" ValueProperty="Value" Change="@ChangeCulture" />and this is the [Change="@ChangeCulture"] method
protected void ChangeCulture(){ var redirect = new Uri(NavigationManager.Uri).GetComponents(UriComponents.PathAndQuery | UriComponents.Fragment, UriFormat.UriEscaped); var query = $"?culture={Uri.EscapeDataString(culture)}&redirectUri={redirect}"; NavigationManager.NavigateTo("Culture/SetCulture" + query, forceLoad: true);}What I need is when the user changes the culture (language) the layout of the page (direction) change from RTL and LTR