NuclearDispersionSystem/ant-design-vue-jeecg/node_modules/ant-design-vue/es/modal/locale.js
2023-09-14 14:47:11 +08:00

22 lines
532 B
Java

import _extends from 'babel-runtime/helpers/extends';
import defaultLocale from '../locale/default';
// export interface ModalLocale {
// okText: string;
// cancelText: string;
// justOkText: string;
// }
var runtimeLocale = _extends({}, defaultLocale.Modal);
export function changeConfirmLocale(newLocale) {
if (newLocale) {
runtimeLocale = _extends({}, runtimeLocale, newLocale);
} else {
runtimeLocale = _extends({}, defaultLocale.Modal);
}
}
export function getConfirmLocale() {
return runtimeLocale;
}