Question:
How do I localize the language for my users?
Code:
@using Syncfusion.Blazor.Grids
<SfGrid DataSource="@Orders" AllowPaging="true" Toolbar="@(new List<string>() { "Add", "Edit", "Delete", "Cancel", "Update" })" Height ="315">
<GridEditSettings AllowAdding="true" AllowEditing="true" AllowDeleting="true"></GridEditSettings>
<GridColumns>
<GridColumn Field=@nameof(Order.OrderID) HeaderText="Order ID" IsPrimaryKey="true" TextAlign="TextAlign.Right" Width="120"></GridColumn>
<GridColumn Field=@nameof(Order.CustomerID) HeaderText="Customer Name" Width="120"></GridColumn>
<GridColumn Field=@nameof(Order.OrderDate) HeaderText=" Order Date" EditType="EditType.DatePickerEdit" Format="d" TextAlign="TextAlign.Right" Width="130" Type="ColumnType.Date"></GridColumn>
<GridColumn Field=@nameof(Order.Freight) HeaderText="Freight" Format="C2" TextAlign="TextAlign.Right" Width="120"></GridColumn>
</GridColumns>
</SfGrid>
Where language localization is needed:
Hi Duong,
Greetings from Syncfusion support.
From your query, we suspect that you want to change the language of the
application dynamically. We suggest you to use localization feature of
Syncfusion component to overcome the reported issue at your end. Kindly refer
the attached UG documentation link for your reference.
You may find runnable sample example in the following github repository.
https://github.com/SyncfusionExamples/blazor-localization
If you have any further queries, please get back to us.
Regards,
Sarvesh
The examples in this github link do not work.
Hi
IBS,
Based on the reported problem, we did not encounter any issues with the sample
provided in the GitHub link below. Could you please further investigate the
issue and let us know which specific sample link caused the problem?
Additionally, kindly share the .NET version you are using. For your reference,
we have attached a simple sample.
https://github.com/SyncfusionExamples/blazor-localization/tree/master/.NET%208%20Blazor%20Web%20App/Localization-with-static-culture
Regards,
Prathap Senthil