Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 1.36 KB

localization.md

File metadata and controls

36 lines (27 loc) · 1.36 KB
layout title description platform control documentation domainurl
post
Localization in Angular Tab component | Syncfusion
Learn here all about Localization in Syncfusion Angular Tab component of Syncfusion Essential JS 2 and more.
ej2-angular
Localization
ug

Localization in Angular Tab component

Localization library allows to localize the default text content of the Tab to different cultures using the locale property. In Tab, the close button's tooltip text alone will be localize based on culture. The close button is shown on tab header when enabled showCloseButton property.

| Locale key | en-US (default) | |------|------|-------------| | closeButtonTitle | Close |

Loading translations

To load translation object in an application use load function of L10n class.

In the below sample, French culture is set to Tab and change the close button's tooltip text.

{% tabs %} {% highlight ts tabtitle="app.component.ts" %} {% include code-snippet/tab/basic-cs10/src/app.component.ts %} {% endhighlight %}

{% highlight ts tabtitle="main.ts" %} {% include code-snippet/tab/basic-cs10/src/main.ts %} {% endhighlight %} {% endtabs %}

{% previewsample "page.domainurl/samples/tab/basic-cs10" %}