UNPKG

@aimake/nanod

Version:

## 设计模式 NANO DESIGN 是面向于企业级中台化应用的解决方案。服务于 ToB 和 ToE 类型的单页应用,应用于各产品中从而产出了一套设计及前端规范。

16 lines (13 loc) 694 B
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } import defaultLocale from '../locale-provider/default'; 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; }