You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
607 B

  1. import React from 'react';
  2. import PropTypes from 'prop-types';
  3. import { IntlProvider, addLocaleData } from 'react-intl';
  4. import { getLocale } from '../locales';
  5. import Video from '../features/video';
  6. const { localeData, messages } = getLocale();
  7. addLocaleData(localeData);
  8. export default class VideoContainer extends React.PureComponent {
  9. static propTypes = {
  10. locale: PropTypes.string.isRequired,
  11. };
  12. render () {
  13. const { locale, ...props } = this.props;
  14. return (
  15. <IntlProvider locale={locale} messages={messages}>
  16. <Video {...props} />
  17. </IntlProvider>
  18. );
  19. }
  20. }