Skip to content

Commit 822ee00

Browse files
984421: Updated the UG content and samples for Globalization in Blazor DataGrid
1 parent e5f9617 commit 822ee00

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

blazor/datagrid/global-local.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor DataGrid supports gl
1313

1414
## Localization
1515

16-
The Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor DataGrid supports localization of static text elements, such as **group drop area text** and **pager information**, can be localized to cultures like `Arabic`, `Deutsch`, `French`, and others.
16+
The Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor DataGrid supports localization of static text elements, such as **group drop area text** and **pager information**, can be localized to cultures like **Arabic**, **Deutsch**, **French**, and others.
1717

1818
- Apply localization to replace default UI text with culture-specific translations.
1919
- Configure localization by referring to the [Blazor Localization Documentation](https://blazor.syncfusion.com/documentation/common/localization).
@@ -165,7 +165,7 @@ Grid_DeleteRecord | Delete Record | ![Locale delete record](images/globalization
165165

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

168-
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).
168+
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

@@ -219,7 +219,7 @@ Include the theme stylesheet and script references in the **~/Components/App.raz
219219
```
220220

221221
> * Refer to the [Blazor Themes](https://blazor.syncfusion.com/documentation/appearance/themes) documentation for theme inclusion methods (Static Web Assets, CDN, or CRG).
222-
> * Set the render mode to `InteractiveServer` or `InteractiveAuto` in the Blazor Web App configuration.
222+
> * Set the render mode to **InteractiveServer** or **InteractiveAuto** in the Blazor Web App configuration.
223223
224224
**Step 5: Create and Register Localization Service**
225225

@@ -398,7 +398,7 @@ In the **Counter.razor** file (or another page, e.g., Index.razor), add code to
398398

399399
**Step 10: Create a Model Class**
400400

401-
Create a `Data` folder and add an **OrderData.cs** file to define the model class for the DataGrid:
401+
Create a **Data** folder and add an **OrderData.cs** file to define the model class for the DataGrid:
402402

403403
{% tabs %}
404404
{% highlight cs tabtitle="OrderData.cs" %}
@@ -451,21 +451,21 @@ namespace LocalizationSample.Client.Data
451451

452452
**Step 11: Run the Application**
453453

454-
Run the application to display the DataGrid with localized content and formats based on the selected culture (e.g., en-US or fr-FR). The culture switcher buttons update the UI, such as `pager text` or `currency` formats (e.g., `$` for en-US, `` for fr-FR).
454+
Run the application to display the DataGrid with localized content and formats based on the selected culture (e.g., en-US or fr-FR). The culture switcher buttons update the UI, such as **pager text** or **currency** formats (e.g., `$` for en-US, `` for fr-FR).
455455

456456
![Switch to a different localization](images/globalization/switch.png)
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 DataGrid component.
463463

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

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

468-
Complete `steps 1` through `5` from the [Switching Localization](https://blazor.syncfusion.com/documentation/datagrid/global-local#switch-the-different-localization) guide to set up the Blazor Web App, install NuGet packages, register services, and include theme resources.
468+
Complete **steps 1** through **5** from the [Switching Localization](https://blazor.syncfusion.com/documentation/datagrid/global-local#switch-the-different-localization) guide to set up the Blazor Web App, install NuGet packages, register services, and include theme resources.
469469

470470
**Step 2: Configure ~/Program.cs**
471471

@@ -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.
488+
* Add the **autostart="false"** attribute to the Blazor `<script>` tag to prevent Blazor from starting automatically.
489489
* 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.
490+
* Use the **Blazor.start** method and set **applicationCulture** to the desired culture code.
491491

492492
{% tabs %}
493493
{% highlight cs tabtitle="~/Components/App.razor" %}
@@ -573,7 +573,7 @@ Use a [Toggle Switch Button](https://blazor.syncfusion.com/documentation/toggle-
573573

574574
**Step 5: Create a Model Class**
575575

576-
Create a `Data` folder and add an **OrderData.cs** file to define the model class for the DataGrid:
576+
Create a **Data** folder and add an **OrderData.cs** file to define the model class for the DataGrid:
577577

578578
{% tabs %}
579579
{% highlight cs tabtitle="OrderData.cs" %}

0 commit comments

Comments
 (0)