New to Kendo UI for Angular? Start a free 30-day trial
Represents a base class for a service that returns localized messages.
For more information, refer to the section on using the message service.
export class CustomMessageService extends MessageService {
public get(key: string): string {
return this.messages[key];
}
}
|
|
|---|
|
Returns a localized message for the supplied key.
|
| Parameters | | |
|---|
|
_key
|
string
|
The message key. For example, "kendo.grid.noRecords".
|
|
| Returns | |
|---|
string
|
- The localized message for this key or
undefined if not found.
|
|
|
|
|---|
|
Notifies the components that the messages changed.
|
|
|