2017-09-14 03:39:10 +02:00
|
|
|
import React from 'react';
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
import { IntlProvider, addLocaleData } from 'react-intl';
|
2017-11-18 04:11:18 +01:00
|
|
|
import { getLocale } from 'mastodon/locales';
|
|
|
|
import Video from 'themes/glitch/features/video';
|
2017-09-14 03:39:10 +02:00
|
|
|
|
|
|
|
const { localeData, messages } = getLocale();
|
|
|
|
addLocaleData(localeData);
|
|
|
|
|
|
|
|
export default class VideoContainer extends React.PureComponent {
|
|
|
|
|
|
|
|
static propTypes = {
|
|
|
|
locale: PropTypes.string.isRequired,
|
|
|
|
};
|
|
|
|
|
|
|
|
render () {
|
|
|
|
const { locale, ...props } = this.props;
|
|
|
|
|
|
|
|
return (
|
|
|
|
<IntlProvider locale={locale} messages={messages}>
|
|
|
|
<Video {...props} />
|
|
|
|
</IntlProvider>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|