Getting Started with the Kendo UI for Angular Localization
This guide provides the information you need to start using the Kendo UI for Angular Localization—it includes instructions about the available installation approaches, the code for running the project, and links to additional resources.
Start Free TrialAfter the completion of this guide, you will be able to achieve an end result as demonstrated in the following example.
Setting Up Your Angular Project
Before you start with the installation of any Kendo UI for Angular control, ensure that you have a running Angular project. The prerequisites to accomplish the installation of the components are always the same regardless of the Kendo UI for Angular package you want to use, and are fully described in the section on setting up your Angular project.
Installing the Package
The Kendo UI for Angular Localization package is automatically installed during the installation process of any Kendo UI for Angular components.
Using the Package
-
After successfully installing any Kendo UI for Angular component, provide the
MessageService
service in the constructor in theapp.component.ts
file:tsimport { MessageService } from '@progress/kendo-angular-l10n'; @Component({ standalone: true, selector: 'my-app', providers: [MessageService] }) export class AppComponent { constructor(public messages: MessageService) {} }
-
Then, utilize the
notify
function of the service to change the direction of the used component on button click:tspublic toggleRTL() { this.rtl = !this.rtl; this.messages.notify(this.rtl); }
-
Build and serve the application by running the following command in the root folder.
shng serve
-
Point your browser to http://localhost:4200 to toggle the RTL mode of the Grid.
Activating Your License Key
As of December 2020, using any of the UI components from the Kendo UI for Angular library requires either a commercial license key or an active trial license key. If your application does not contain a Kendo UI license file, activate your license key.