/**
 * tdesign v0.32.0
 * (c) 2021 tdesign
 * @license MIT
 */

'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var Vue = require('vue');

function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }

var Vue__default = /*#__PURE__*/_interopDefaultLegacy(Vue);

var LocaleProvider = Vue__default["default"].extend({
  name: "TLocaleProvider",
  props: {
    globalLocale: Object
  },
  provide: function provide() {
    return {
      globalLocale: this.globalLocale
    };
  },
  render: function render() {
    var h = arguments[0];

    if (this.$slots["default"].length === 1) {
      return this.$slots["default"][0];
    }

    return h("div", [this.$slots["default"]]);
  }
});

exports["default"] = LocaleProvider;
//# sourceMappingURL=local-provider.js.map
