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.
22 lines
438 B
22 lines
438 B
9 years ago
|
import assign from 'object-assign';
|
||
|
|
||
9 years ago
|
const defaultLocale = {
|
||
|
okText: '确定',
|
||
|
cancelText: '取消',
|
||
|
justOkText: '知道了',
|
||
|
};
|
||
|
|
||
9 years ago
|
let runtimeLocale = assign({}, defaultLocale);
|
||
9 years ago
|
|
||
|
export function changeConfirmLocale(newLocale) {
|
||
|
if (newLocale) {
|
||
9 years ago
|
runtimeLocale = assign({}, runtimeLocale, newLocale);
|
||
9 years ago
|
} else {
|
||
9 years ago
|
runtimeLocale = assign({}, defaultLocale);
|
||
9 years ago
|
}
|
||
|
}
|
||
|
|
||
9 years ago
|
export function getConfirmLocale() {
|
||
9 years ago
|
return runtimeLocale;
|
||
|
}
|