mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-05 05:28:20 +08:00
20 lines
389 B
JavaScript
20 lines
389 B
JavaScript
const defaultLocale = {
|
|
okText: '确定',
|
|
cancelText: '取消',
|
|
justOkText: '知道了',
|
|
};
|
|
|
|
let runtimeLocale = { ...defaultLocale };
|
|
|
|
export function changeConfirmLocale(newLocale) {
|
|
if (newLocale) {
|
|
runtimeLocale = { ...runtimeLocale, ...newLocale };
|
|
} else {
|
|
runtimeLocale = { ...defaultLocale };
|
|
}
|
|
}
|
|
|
|
export function getConfirmLocale() {
|
|
return runtimeLocale;
|
|
}
|