爲了使得產品能夠符合不一樣市場的本地化需求和語言,Kendo UI中的網格控件提供了一種方法,來幫助用戶經過使用配置選項來本地化用戶的界面。
html
工具欄控件的本地化 web
toolbar: [
//name - name of the available commands, text - text to be set on the button
{ name: "create", text: "Custom Create" },
{ name: "save", text: "Custom Save" },
{ name: "cancel", text: "Custom Cancel" }
] app
列命令的本地化 框架
columns: [
{ field: "FirstName", title: "First Name" },
{ field: "LastName", title: "Last Name" },
{ command: [
{
name: "edit",
text: { // sets the text of the "Edit", "Update" and "Cancel" buttons
edit: "CustomEdit",
update: "CustomUpdate",
cancel: "CustomCancel"
}
},
{ name: "destroy", text: "CustomDelete" } // sets the text of the "Delete" button
],
title: " "
}
] 工具
過濾器菜單本地化 spa
組頭本地化
htm
列菜單本地化
get
頁面本地化 產品