const repairValue = (
  value: MetadataObject,
  propertyName: string,
  language: string
): {