var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
  // If the importer is in node compatibility mode or this is not an ESM
  // file that has been converted to a CommonJS file using a Babel-
  // compatible transform (i.e. "__esModule" has not been set), then set
  // "default" to the CommonJS "module.exports" for node compatibility.
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
  mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var stdin_exports = {};
__export(stdin_exports, {
  gLocaleObject: () => gLocaleObject,
  getLanguage: () => getLanguage
});
module.exports = __toCommonJS(stdin_exports);
var import_pro_utils = require("@antdv/pro-utils");
var import_en_US = __toESM(require("./en-US"));
var import_it_IT = __toESM(require("./it-IT"));
var import_ko_KR = __toESM(require("./ko-KR"));
var import_zh_CN = __toESM(require("./zh-CN"));
var import_zh_TW = __toESM(require("./zh-TW"));
const locales = {
  "zh-CN": import_zh_CN.default,
  "zh-TW": import_zh_TW.default,
  "en-US": import_en_US.default,
  "it-IT": import_it_IT.default,
  "ko-KR": import_ko_KR.default
};
function getLanguage() {
  if (!(0, import_pro_utils.isBrowser)()) return "zh-CN";
  const lang = window.localStorage.getItem("umi_locale");
  return lang || window.g_locale || navigator.language;
}
function gLocaleObject() {
  const gLocale = getLanguage();
  return locales[gLocale] || locales["zh-CN"];
}
