language
To localize and update the messages used in Grid.js.
optional
- Type:
{ [key: string]: string | (...args) => string }
- Example: Locales
new Grid({
// ...
language: {
'search': {
'placeholder': '🔍 Search...'
},
'pagination': {
'previous': '⬅️',
'next': '➡️',
'showing': '😃 Displaying',
'results': () => 'Records'
}
}
});
tip
See en_US for a full list of messages.