'use strict';

exports.__esModule = true;

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

var _locale2 = require('./../locale');

var _locale3 = _interopRequireDefault(_locale2);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var Context = _react2.default.createContext({
  locale: function locale(remark, key, variable) {
    console.log(remark, key, variable);
    console.log('没有配置国际化, 默认读取国际化文件zh_CN');
    return (0, _locale3.default)(remark, key, variable);
  },
  language: '',
  portal: null
});

exports.default = Context;
module.exports = exports['default'];