mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-11-30 11:08:00 +08:00
29 lines
501 B
JavaScript
29 lines
501 B
JavaScript
import defaultLocale from '../locale-provider/default';
|
|
|
|
// export interface ModalLocale {
|
|
// okText: string;
|
|
// cancelText: string;
|
|
// justOkText: string;
|
|
// }
|
|
|
|
let runtimeLocale = {
|
|
...defaultLocale.Modal,
|
|
};
|
|
|
|
export function changeConfirmLocale(newLocale) {
|
|
if (newLocale) {
|
|
runtimeLocale = {
|
|
...runtimeLocale,
|
|
...newLocale,
|
|
};
|
|
} else {
|
|
runtimeLocale = {
|
|
...defaultLocale.Modal,
|
|
};
|
|
}
|
|
}
|
|
|
|
export function getConfirmLocale() {
|
|
return runtimeLocale;
|
|
}
|