Skip to content

Commit dee8c65

Browse files
984421: Updated the UG content and samples for Globalization in Blazor DataGrid
1 parent c554651 commit dee8c65

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

blazor/datagrid/global-local.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -159,25 +159,25 @@ Grid_DeleteRecord | Delete Record | ![Locale delete record](images/globalization
159159

160160
### Switch the different localization
161161

162-
The Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor DataGrid allows switching the localization from one culture to another at runtime. This is useful when the culture needs to be changed based on user preference or application context. For more details, see [Dynamically set the culture](https://blazor.syncfusion.com/documentation/common/localization#dynamically-set-the-culture).
162+
- The Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor DataGrid allows switching the localization from one culture to another at runtime. This is useful when the culture needs to be changed based on user preference or application context. For more details, see [Dynamically set the culture](https://blazor.syncfusion.com/documentation/common/localization#dynamically-set-the-culture).
163163

164-
To configure localization in a Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor DataGrid and switch to a different culture (e.g., French, German, Arabic), follow these steps:
164+
- To configure localization in a Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor DataGrid and switch to a different culture (e.g., French, German, Arabic), follow these steps:
165165

166166
**Step 1: Create a Blazor Web App**
167167

168168
Create a **Blazor Web App** named `LocalizationSample` using Visual Studio 2022. Use either [Microsoft Templates](https://learn.microsoft.com/en-us/aspnet/core/blazor/tooling?view=aspnetcore-8.0&pivots=vs) or the [Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor Extension](https://blazor.syncfusion.com/documentation/visual-studio-integration/template-studio). Configure the appropriate [interactive render mode](https://learn.microsoft.com/en-us/aspnet/core/blazor/components/render-modes?view=aspnetcore-8.0#render-modes) and [interactivity location](https://learn.microsoft.com/en-us/aspnet/core/blazor/tooling?view=aspnetcore-8.0&pivots=vs#interactivity-location).
169169

170170
**Step 2: Install Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor DataGrid NuGet Packages**
171171

172-
To integrate the Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor DataGrid, open the NuGet Package Manager (*Tools → NuGet Package Manager → Manage NuGet Packages for Solution*) and install the following packages:
172+
- To integrate the Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor DataGrid, open the NuGet Package Manager (*Tools → NuGet Package Manager → Manage NuGet Packages for Solution*) and install the following packages:
173173

174174
- [Syncfusion.Blazor.Grid](https://www.nuget.org/packages/Syncfusion.Blazor.Grid/)
175175
- [Syncfusion.Blazor.Themes](https://www.nuget.org/packages/Syncfusion.Blazor.Themes/)
176176
- [Syncfusion.Blazor.Buttons](https://www.nuget.org/packages/Syncfusion.Blazor.Buttons/)
177177

178-
For Blazor Web Apps using WebAssembly or Auto render modes, install these packages in the client project.
178+
- For Blazor Web Apps using WebAssembly or Auto render modes, install these packages in the client project.
179179

180-
Alternatively, use the following Package Manager Console commands:
180+
- Alternatively, use the following Package Manager Console commands:
181181

182182
```powershell
183183
Install-Package Syncfusion.Blazor.Grid -Version {{ site.releaseversion }}
@@ -189,7 +189,7 @@ N> Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor components are availa
189189

190190
**Step 3: Register Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor Service**
191191

192-
- Open the **~/_Imports.razor** file and import the required namespaces.
192+
Open the **~/_Imports.razor** file and import the required namespaces.
193193

194194
```cs
195195
@using Syncfusion.Blazor
@@ -457,11 +457,11 @@ Run the application to display the DataGrid with localized content and formats b
457457

458458
## Right-to-Left (RTL) in Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor DataGrid
459459

460-
The Right-to-Left (RTL) feature in the Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor DataGrid reverses the layout and text direction from left-to-right to right-to-left, supporting languages like `Arabic`, `Farsi`, and `Urdu`. Enabling RTL improves accessibility and delivers a natural reading experience for these languages.
460+
- The Right-to-Left (RTL) feature in the Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor DataGrid reverses the layout and text direction from left-to-right to right-to-left, supporting languages like `Arabic`, `Farsi`, and `Urdu`. Enabling RTL improves accessibility and delivers a natural reading experience for these languages.
461461

462-
To enable RTL, set the [EnableRtl](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Grids.SfGrid-1.html#Syncfusion_Blazor_Grids_SfGrid_1_EnableRtl) property to `true` in the `SfGrid` component.
462+
- To enable RTL, set the [EnableRtl](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Grids.SfGrid-1.html#Syncfusion_Blazor_Grids_SfGrid_1_EnableRtl) property to `true` in the `SfGrid` component.
463463

464-
Follow these steps to configure RTL with a specific culture:
464+
- Follow these steps to configure RTL with a specific culture:
465465

466466
**Step 1: Complete Initial Localization Setup**
467467

@@ -485,9 +485,9 @@ builder.Services.AddSingleton(typeof(ISyncfusionStringLocalizer), typeof(Syncfus
485485

486486
**Step 3: Set Culture in Blazor Start Option**
487487

488-
- Add the `autostart="false"` attribute to the Blazor `<script>` tag to prevent Blazor from starting automatically.
489-
- Add the script block below Blazor’s `<script>` tag and before the closing `</body>` tag to start Blazor with a specific culture.
490-
- Use the `Blazor.start` method and set `applicationCulture` to the desired culture code.
488+
* Add the `autostart="false"` attribute to the Blazor `<script>` tag to prevent Blazor from starting automatically.
489+
* Add the script block below Blazor’s `<script>` tag and before the closing `</body>` tag to start Blazor with a specific culture.
490+
* Use the `Blazor.start` method and set `applicationCulture` to the desired culture code.
491491

492492
{% tabs %}
493493
{% highlight cs tabtitle="~/Components/App.razor" %}

0 commit comments

Comments
 (0)