Kendo UI for Angular: Internationalization
April 15, 2019 ยท View on GitHub
This repository is no longer updated. To access the current version, refer to the kendo-angular repository.
Kendo UI for Angular: Internationalization
This repository contains a sample application which demonstrates how to translate the built-in messages of the Kendo UI for Angular components.
For more details, refer to the article on localization.
Get Started
- Clone this repository by using your favorite Git client or by executing
git clone https://github.com/telerik/kendo-angular-i18n-sample.git. - Enter the project directory by running
cd kendo-angular-i18n-sample. - Run
npm installto install the project dependencies.
Table of Contents
- Extracting Messages
- Translating Messages
- Running the Application
- Original Angular CLI Documentation
- Other Kendo UI Sample Projects for Angular
Extracting Messages
To extract the application messages in src/locale/messages.xlf, run the npm run i18n-extract command.
Translating Messages
To automatically translate Kendo UI texts from the @progress/kendo-angular-messages message pack, run the npm run i18n-translate command.
To translate Kendo UI messages for the "es-ES" locale only, run the npm run i18n-translate-kendo-es command.
Running the Application
To run your application with the es-ES locale, run the npm run start-es.
Original Angular CLI Documentation
This project is generated by using the 1.0.0-beta.31 Angular CLI version.
Development Server
- To set a development server, run
ng serve. - Navigate to
http://localhost:4200/.
The application will automatically reload each time you change a source file.
Code Scaffolding
To generate a new component, run the ng generate component component-name command. You can also use ng generate directive/pipe/service/class/module.
Builds
To build the project, run the ng build command. The build artifacts are stored in the dist/ directory. Use the -prod flag for a production build.
Unit Tests
To execute the unit tests through Karma, run the ng test command.
End-to-End Tests
Before running the tests make sure you are serving the application by using the ng serve command.
To execute the end-to-end tests through Protractor, run the ng e2e command.
Further Help
To get support for the Angular CLI tool, either:
- Run the
ng helpcommand, or - Check out the Angular CLI README file.