"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
function _export(target, all) {
    for(var name in all)Object.defineProperty(target, name, {
        enumerable: true,
        get: Object.getOwnPropertyDescriptor(all, name).get
    });
}
_export(exports, {
    get $t () {
        return $t;
    },
    get setLang () {
        return setLang;
    },
    get setupI18n () {
        return setupI18n;
    }
});
const _i18next = /*#__PURE__*/ _interop_require_default(require("i18next"));
const _reacti18next = require("react-i18next");
const _enus = /*#__PURE__*/ _interop_require_default(require("./langs/en-us"));
const _zhcn = /*#__PURE__*/ _interop_require_default(require("./langs/zh-cn"));
function _interop_require_default(obj) {
    return obj && obj.__esModule ? obj : {
        default: obj
    };
}
function setupI18n(otherLocales = {
    'en-US': {},
    'zh-CN': {}
}) {
    const locales = {
        'en-US': {
            translation: Object.assign({}, _enus.default, otherLocales['en-US'])
        },
        'zh-CN': {
            translation: Object.assign({}, _zhcn.default, otherLocales['zh-CN'])
        }
    };
    _i18next.default.use(_reacti18next.initReactI18next).init({
        interpolation: {
            escapeValue: false
        },
        lng: 'zh-cn',
        resources: locales
    });
}
const $t = _i18next.default.t;
function setLang(locale) {
    _i18next.default.changeLanguage(locale);
}

//# sourceMappingURL=index.js.map