Skip to content

Commit d64bca0

Browse files
993664: Updated the UG content and samples for Blazor Pager Component
1 parent a9b3733 commit d64bca0

File tree

1 file changed

+21
-5
lines changed

1 file changed

+21
-5
lines changed

blazor/pager/globalization.md

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,40 @@
11
---
22
layout: post
33
title: Globalization in Blazor Pager Component | Syncfusion
4-
description: Checkout and learn here all about globalization and RTL in Syncfusion Blazor Pager component and much more details.
4+
description: Learn how to configure localization and right-to-left (RTL) rendering in the Syncfusion Blazor Pager component.
55
platform: Blazor
66
control: Pager
77
documentation: ug
88
---
99

1010
# Globalization in Blazor Pager Component
1111

12+
This article explains how to **localize** the Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor Pager component and how to enable **right-to-left (RTL)** rendering.
13+
1214
## Localization
1315

14-
Blazor Pager component can be localized. Refer to [Blazor Localization](https://blazor.syncfusion.com/documentation/common/localization) topic to localize Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor components.
16+
The Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor Pager component supports localization, allowing text and UI elements to adapt to various languages and cultural formats.
17+
18+
> Refer to the [Blazor Localization](https://blazor.syncfusion.com/documentation/common/localization) guide for detailed configuration steps.
1519
1620
## Right to left (RTL)
1721

18-
RTL provides an option to switch the text direction and layout of the Pager component from right to left. It improves the user experiences and accessibility for users who use right-to-left languages (Arabic, Farsi, Urdu, etc.). In the following sample, [EnableRtl](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Navigations.SfPager.html#Syncfusion_Blazor_Navigations_SfPager_EnableRtl) property is used to enable RTL in the Pager.
22+
The Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor Pager component supports right-to-left (RTL) rendering for languages such as **Arabic**, **Farsi**, and **Urdu**. **RTL** can be enabled by configuring the **Syncfusion Blazor service** during application startup.
23+
24+
**Register the `EnableRtl` option in Program.cs**:
25+
26+
{% tabs %}
27+
{% highlight C# tabtitle="~/_Program.cs" %}
28+
29+
builder.Services.AddSyncfusionBlazor(options => { options.EnableRtl = true; });
30+
31+
{% endhighlight %}
32+
{% endtabs %}
1933

2034
```cshtml
2135
@using Syncfusion.Blazor.Navigations
2236
23-
<SfPager TotalItemsCount=20 NumericItemsCount=5 PageSize=5 EnableRtl=true></SfPager>
24-
```
37+
<SfPager TotalItemsCount="20" NumericItemsCount="5" PageSize="5"></SfPager>
38+
```
39+
40+
> For more details, refer to the [Right-to-Left](https://blazor.syncfusion.com/documentation/common/right-to-left) guide for detailed configuration steps.

0 commit comments

Comments
 (0)