function applyLocalizedContent(record, translations, locale) {
  if (!translations || !translations[locale]) return record;
  const overlay = translations[locale];
  const result = { ...record };
  const translated = [];
  for (const [key, value] of Object.entries(overlay)) {
    if (value !== null && value !== void 0 && key in record) {
      ;
      result[key] = value;
      translated.push(key);
    }
  }
  if (translated.length > 0) {
    ;
    result._locale = locale;
    result._translated = translated;
  }
  return result;
}
export {
  applyLocalizedContent
};
//# sourceMappingURL=resolver.js.map
