L10n.load({
'en-US': {
grid: {
"Add": "AddRow",
"Edit": "EditRow",
"Cancel": "CancelChanges",
"Update": "UpdateRow",
"Delete": "DeleteRow",
"Print": "Print",
. . . . . . . .
"EditOperationAlert": "No records selected to perform edit operation",
"DeleteOperationAlert": "No records selected to perform Delete operation",
. . . . . . . .
},
pager: {
. . . . . . . . . .
}
}
});
|
load(){
(this.gridInstance.localeObj as any).currentLocale.Add = "Add user" // change text as per your needs
} |
import { L10n, setCulture } from '@syncfusion/ej2-base';
import { orderDetails } from './data';
setCulture('vi');
L10n.load({
'vi': {
"grid": {
"Add": "Thêm vào",
"Edit": "Biên tập",
"Cancel": "Hủy bỏ",
"Update": "Cập nhật",
"Delete": "Xóa bỏ",
"EditOperationAlert": "Không có bản ghi nào được chọn cho thao tác chỉnh sửa",
"DeleteOperationAlert": "Không có hồ sơ được chọn cho hoạt động xóa",
. . . . . . . . . .
},
}
}); |