Localization

The Tile component provides option to localize its strings, it is used to adapting the Tile to a particular local language. By default, the Tile will use the US English (en-US) as its language.

NOTE

The culture name has to be specified in a standard format such as [Language Code]-[County/Region Code].

To localize the Tile strings with your own localization, copy the default language informations and localize the strings in the values column. For example, to localize the Tile in Italian language (“it-IT”).

  • javascript
  • ej.Tile.Locale["it-IT"] = {
            captionText: "testo" 
        };

    Set the locale property of the Tile to the new language.

  • html
  • <ej-tile id="tile" tileSize="medium" imagePosition="center" imageUrl="http://js.syncfusion.com/ug/web/content/tile/camera.png" locale="it-IT">
    </ej-tile>
  • ts
  • export class AppComponent {
        constructor() {
            ej.Tile.Locale["it-IT"] = {
                captionText: "testo"
            };
        }
    }