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