import zhCN from "./zh-CN";
import enUS from "./en-US";
import zhTW from "./zh-TW";
import ja from "./ja";
import pt from "./pt";
import { getCurrentLocale } from "../utils/locale";
var langMap = {
  'zh-CN': zhCN,
  'en-US': enUS,
  'zh-TW': zhTW,
  'zh-HK': zhTW,
  en: enUS,
  original: enUS,
  ja: ja,
  pt: pt
};
export var getText = function getText(id) {
  var _langMap$locale;
  if (!id) {
    return;
  }
  var locale = getCurrentLocale();
  //@ts-ignore
  return (langMap === null || langMap === void 0 || (_langMap$locale = langMap[locale]) === null || _langMap$locale === void 0 ? void 0 : _langMap$locale[id]) || langMap['en-US'][id] || id;
};