'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.changeConfirmLocale = changeConfirmLocale;
exports.getConfirmLocale = getConfirmLocale;
var defaultLocale = {
  okText: '确定',
  cancelText: '取消',
  justOkText: '知道了'
};

var runtimeLocale = Object.assign({}, defaultLocale);

function changeConfirmLocale(newLocale) {
  if (newLocale) {
    runtimeLocale = Object.assign({}, runtimeLocale, newLocale);
  } else {
    runtimeLocale = Object.assign({}, defaultLocale);
  }
}

function getConfirmLocale() {
  return runtimeLocale;
}