d6dc66f57e
Replace the checkbox with a selector up with 3 languages: en-US, es-ES and pt-BR. Add setting option to enable by default with predetermined locale.
12 lines
368 B
JavaScript
12 lines
368 B
JavaScript
import React from 'react';
|
|
import { withTracker } from 'meteor/react-meteor-data';
|
|
import Service from '/imports/ui/components/audio/captions/speech/service';
|
|
import Select from './component';
|
|
|
|
const Container = (props) => <Select {...props} />;
|
|
|
|
export default withTracker(() => ({
|
|
enabled: Service.isEnabled(),
|
|
locale: Service.getSpeechLocale(),
|
|
}))(Container);
|