MessageService
Class
Represents a base class for a service that returns localized messages.
For more information, refer to the section on using the message service.
Definition
Package:@progress/kendo-angular-l10n
Syntax:
ts
export class CustomMessageService extends MessageService {
public get(key: string): string {
return this.messages[key];
}
}
Methods
Returns a localized message for the supplied key.
Parameters:_keystring
The message key. For example, "kendo.grid.noRecords".
string
- The localized message for this key or
undefinedif not found.
Notifies the components that the messages changed.
Parameters:rtl?boolean
(Optional) The new value for the text direction token.