import c from "./en.js";
import p from "./zh.js";
const n = { en: c, zh: p }, l = (r, o) => r.replace(/{(\w*)}/g, (e, t) => Object.prototype.hasOwnProperty.call(o, t) ? o[t] : "");
function m(r, o = "en", e = {}) {
  const t = o in n ? o : "en";
  return l(n[t][r], e) || r;
}
export {
  m as t
};
