Search results


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.

import { L10n } from '@syncfusion/ej2-base';
import { TabComponent, TabItemDirective, TabItemsDirective } from '@syncfusion/ej2-react-navigations';
import * as React from 'react';
import * as ReactDOM from 'react-dom';

  'fr-BE': {
    'tab': {
      'closeButtonTitle': "Fermer"

export default class ReactApp extends React.Component<{}, {}> {
  public headerText: any = [{ text: "HTML" }, { text: "C Sharp(C#)" }, { text: "Java" }];

  public content0() {
    return <div>
      HyperText Markup Language, commonly referred to as HTML, is the standard markup language used to create web pages. Along with CSS, and JavaScript, HTML is a cornerstone technology, used by most websites to create visually engaging web pages, user interfaces for web applications, and user interfaces for many mobile applications.[1] Web browsers can read HTML files and render them into visible or audible web pages. HTML describes the structure of a website semantically along with cues for presentation, making it a markup language, rather than a programming language.
  public content1() {
    return <div>
      C# is intended to be a simple, modern, general-purpose, object-oriented programming language. Its development team is led by Anders Hejlsberg. The most recent version is C# 5.0, which was released on August 15, 2012.
  public content2() {
    return <div>
      Java is a set of computer software and specifications developed by Sun Microsystems, later acquired by Oracle Corporation, that provides a system for developing application software and deploying it in a cross-mobile phones to platform computing environment. Java is used in a wide variety of computing platforms from embedded devices and enterprise servers and supercomputers. While less common, Java applets run in secure, sandboxed environments to provide many features of native applications and can be embedded in HTML pages.

  public render() {
    return (
      <TabComponent heightAdjustMode='Auto' locale="fr-BE" showCloseButton={true}>
          <TabItemDirective header={this.headerText[0]} content={this.content0} />
          <TabItemDirective header={this.headerText[1]} content={this.content1} />
          <TabItemDirective header={this.headerText[2]} content={this.content2} />
ReactDOM.render(<ReactApp />, document.getElementById('element'));
<!DOCTYPE html>
<html lang="en">

    <title>Syncfusion React Tab</title>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta name="description" content="Essential JS 2 for React Components" />
    <meta name="author" content="Syncfusion" />
    <link href="index.css" rel="stylesheet" />
    <link href="//" rel="stylesheet" />
    <script src=""></script>
    <script src="systemjs.config.js"></script>

    <div id='container'>
        <div id='element'>
                <div id='loader'>Loading</div>

#loader {
    color: #008cff;
    height: 40px;
    left: 45%;
    position: absolute;
    top: 45%;
    width: 30%;
.e-content .e-item {
    font-size: 12px;
    margin: 10px;
    text-align: justify;
#element {
    max-width: 650px;