locale-zh_CN.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. function initLocale() {
  2. Ext.define('Ext.locale.zh_CN.Panel', {
  3. override: 'Ext.Panel',
  4. config: {
  5. standardButtons: {
  6. ok: {
  7. text: '确定'
  8. },
  9. }
  10. },
  11. })
  12. Ext.define('Ext.locale.zh_CN.picker.Date', {
  13. override: 'Ext.picker.Date',
  14. config: {
  15. doneButton: '完成',
  16. }
  17. });
  18. Ext.define('Ext.locale.zh_CN.picker.Picker', {
  19. override: 'Ext.picker.Picker',
  20. config: {
  21. doneButton: '完成',
  22. }
  23. });
  24. const _getStandardButtons = Ext.MessageBox.prototype.getStandardButtons
  25. Ext.MessageBox.override({
  26. getStandardButtons(){
  27. const ret = _getStandardButtons.apply(this, arguments)
  28. ret.ok.text = "确定"
  29. return ret
  30. }
  31. });
  32. // Ext.define('Ext.locale.zh_CN.MessageBox', {
  33. // override: 'Ext.MessageBox',
  34. // config: {
  35. // standardButtons: {
  36. // ok: {
  37. // text: '确定'
  38. // },
  39. // }
  40. // }
  41. // });
  42. }
  43. // standardButtons
  44. export {
  45. initLocale
  46. }