Unplanned
Last Updated: 05 May 2022 10:47 by ADMIN
Kendo UI
Created on: 05 May 2022 10:46
Category: Kendo UI for Angular
Type: Feature Request
4
Dynamic messages translation

Please provide a mechanic for dynamic messages translations and/or more seamless integration with established third-party libraries like ngx-translate.

Currently the only available option is using a customized messages service, but this approach has multiple shortcomings

- all messages for all locales need to be recreated one by one in the service

- is not integrated with third-party libraries used to translate the rest of the application

A detailed discussion regarding the necessity of similar enhancement is available in the following GitHub thread:

https://github.com/telerik/kendo-angular/issues/362

P.S.: A possible workaround available for integration with ngx-translate involve adding the desired Kendo messages in the JSON files containing all translations for each supported language, and using the custom messages service to obtain and return the ngx service translation. Recreating the page each time the JSON data for the respective language is loaded is necessary to ensure that the correct messages will be available and used in the Kendo components.

The following example demonstrates a sample implementation of this approach:

https://stackblitz.com/edit/angular-kzirzx?file=src%2Fapp%2Fapp.component.ts

0 comments