All Components

Globalization

The globalization process combines the translation of component messages with adapting them to specific cultures.

For more information on how globalization practices are implemented in Kendo UI for Angular, refer to the overview article. For more information on the globalization aspects which are available for each component, refer to the article on globalization support.

Internationalization

The internationalization (i18n) process applies specific culture formats to a web application.

For more information, refer to:

Messages

The ToolBar does not provide built-in translated messages or the option to implement and localize custom ones.

Right-to-Left Support

The following example demonstrates how to utilize the RTL support for the ToolBar.

import { Component } from '@angular/core';

@Component({
    selector: 'my-app',
    template: `
    <kendo-toolbar>
        <kendo-toolbar-button [icon]="'folder'" [text]="'Browse'" (click)="browse()"></kendo-toolbar-button>
        <kendo-toolbar-separator></kendo-toolbar-separator>
        <kendo-toolbar-splitbutton [text]="'Paste'" (buttonClick)="onPaste()" [data]="splitButtonData"></kendo-toolbar-splitbutton>
        <kendo-toolbar-dropdownbutton [text]="'Edit'" [data]="dropdownData" [textField]="'actionName'"></kendo-toolbar-dropdownbutton>
        <kendo-toolbar-separator></kendo-toolbar-separator>
        <kendo-toolbar-buttongroup>
            <kendo-toolbar-button [toggleable]="true" [icon]="'bold'"></kendo-toolbar-button>
            <kendo-toolbar-button [toggleable]="true" [icon]="'italic'"></kendo-toolbar-button>
            <kendo-toolbar-button [toggleable]="true" [icon]="'underline'"></kendo-toolbar-button>
        </kendo-toolbar-buttongroup>
        <kendo-toolbar-separator></kendo-toolbar-separator>
        <kendo-toolbar-button [text]="'Button 1'"></kendo-toolbar-button>
        <kendo-toolbar-button [text]="'Button 2'"></kendo-toolbar-button>
    </kendo-toolbar>
  `
})

export class AppComponent {
    public splitButtonData: Array<any> = [{
        text: 'Keep Text Only',
        icon: 'paste-plain-text',
        click: () => { console.log('Keep Text Only'); }
    }, {
        text: 'Paste as HTML',
        icon: 'paste-as-html',
        click: () => { console.log('Paste as HTML'); }
    }, {
        text: 'Paste Markdown',
        icon: 'paste-markdown',
        click: () => { console.log('Paste Markdown'); }
    }, {
        text: 'Set Default Paste',
        click: () => { console.log('Set Default Paste'); }
    }];

    public dropdownData: Array<any> = [{
        actionName: 'Undo',
        icon: 'undo',
        click: (dataItem) => { console.log(`${dataItem.actionName}ing last action.`); }
    }, {
        actionName: 'Redo',
        icon: 'redo',
        disabled: true
    }, {
        actionName: 'Cut',
        icon: 'cut',
        click: (dataItem) => { console.log(`cut clicked!`); }
    }, {
        actionName: 'Copy',
        icon: 'copy',
        click: (dataItem) => { console.log(`copy clicked!`); }
    }, {
        actionName: 'Paste',
        icon: 'paste',
        click: (dataItem) => { console.log(`paste clicked!`); }
    }];

    public browse(): void {
        console.log('browse clicked!');
    }

    public onPaste(): void {
        console.log('paste clicked!');
    }
}
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { HttpClientModule, HttpClientJsonpModule } from '@angular/common/http';
import { ToolBarModule } from '@progress/kendo-angular-toolbar';
import { RTL } from '@progress/kendo-angular-l10n';

import { AppComponent } from './app.component';

@NgModule({
  imports: [
    BrowserModule,
    BrowserAnimationsModule,
    HttpClientModule,
    HttpClientJsonpModule,
    ToolBarModule
  ],
  declarations: [
    AppComponent
  ],
  bootstrap: [
    AppComponent
  ],
  providers: [{ provide: RTL, useValue: true }]
})
export class AppModule { }
import { AppModule } from './app.module';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';

const platform = platformBrowserDynamic();
platform.bootstrapModule(AppModule);
In this article