import i18n from "i18next";
import { initReactI18next } from "react-i18next";
import enUS from "./langs/en-us";
import zhCN from "./langs/zh-cn";
/** Setup plugin i18n */ export function setupI18n(otherLocales = {
    'en-US': {},
    'zh-CN': {}
}) {
    const locales = {
        'en-US': {
            translation: Object.assign({}, enUS, otherLocales['en-US'])
        },
        'zh-CN': {
            translation: Object.assign({}, zhCN, otherLocales['zh-CN'])
        }
    };
    i18n.use(initReactI18next).init({
        interpolation: {
            escapeValue: false
        },
        lng: 'zh-cn',
        resources: locales
    });
}
export const $t = i18n.t;
export function setLang(locale) {
    i18n.changeLanguage(locale);
}

//# sourceMappingURL=index.js.map