const GLOBAL_KEY = "__openMercatoTranslatableFields__";
function getGlobal() {
  return globalThis[GLOBAL_KEY] ?? {};
}
function setGlobal(registry) {
  globalThis[GLOBAL_KEY] = registry;
}
function registerTranslatableFields(fields) {
  setGlobal({ ...getGlobal(), ...fields });
}
function getTranslatableFields(entityType) {
  return getGlobal()[entityType];
}
function getTranslatableFieldsRegistry() {
  return { ...getGlobal() };
}
export {
  getTranslatableFields,
  getTranslatableFieldsRegistry,
  registerTranslatableFields
};
//# sourceMappingURL=translatable-fields.js.map
