You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ant-design-vue/components/modal/locale.js

29 lines
501 B

import defaultLocale from '../locale-provider/default';
7 years ago
// export interface ModalLocale {
// okText: string;
// cancelText: string;
// justOkText: string;
// }
let runtimeLocale = {
...defaultLocale.Modal,
};
7 years ago
export function changeConfirmLocale(newLocale) {
7 years ago
if (newLocale) {
runtimeLocale = {
...runtimeLocale,
...newLocale,
};
7 years ago
} else {
runtimeLocale = {
...defaultLocale.Modal,
};
7 years ago
}
}
export function getConfirmLocale() {
return runtimeLocale;
7 years ago
}