"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.changeConfirmLocale = changeConfirmLocale;
exports.getConfirmLocale = getConfirmLocale;

var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));

var _vue = require("vue");

var _default = _interopRequireDefault(require("../locale/default"));

var runtimeLocale = (0, _vue.ref)((0, _objectSpread2.default)({}, _default.default.Modal));

function changeConfirmLocale(newLocale) {
  if (newLocale) {
    runtimeLocale.value = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, runtimeLocale), newLocale);
  } else {
    runtimeLocale.value = (0, _objectSpread2.default)({}, _default.default.Modal);
  }
}

function getConfirmLocale() {
  return runtimeLocale.value;
}