import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import { Components, registerComponent, Locales } from 'meteor/vulcan:core'; import omit from 'lodash/omit'; import getContext from 'recompose/getContext'; class FormIntl extends PureComponent { /* Note: ideally we'd try to make sure to return the right path no matter the order translations are stored in, but in practice we can't guarantee it so we just use the order of the Locales array. */ getLocalePath = (defaultIndex) => { return `${this.props.path}_intl.${defaultIndex}`; } render() { // do not pass FormIntl's own value, inputProperties, and intlInput props down const properties = omit(this.props, 'value', 'inputProperties', 'intlInput'); return (