"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const index = require("../../locales/index.js");
const basic = require("../../stores/basic.js");
const languageMap = {
  zh: "zh-CN",
  en: "en-US"
};
const setLanguage = (language) => {
  const currentLanguage = languageMap[language];
  if (!currentLanguage) return;
  const basicStore = basic.useBasicStore();
  index.default.global.locale.value = currentLanguage;
  basicStore.setLang(currentLanguage);
  localStorage.setItem("tuiRoom-language", currentLanguage);
};
exports.setLanguage = setLanguage;
