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.

ClosedCaptionButton.web.js 707B

1234567891011121314151617181920212223242526
  1. // @flow
  2. import { translate } from '../../base/i18n';
  3. import { connect } from '../../base/redux';
  4. import {
  5. AbstractClosedCaptionButton,
  6. _abstractMapStateToProps
  7. } from './AbstractClosedCaptionButton';
  8. /**
  9. * A button which starts/stops the transcriptions.
  10. */
  11. class ClosedCaptionButton
  12. extends AbstractClosedCaptionButton {
  13. accessibilityLabel = 'toolbar.accessibilityLabel.cc';
  14. iconName = 'icon-closed_caption';
  15. toggledIconName = 'icon-closed_caption toggled';
  16. tooltip = 'transcribing.ccButtonTooltip';
  17. label = 'toolbar.startSubtitles';
  18. toggledLabel = 'toolbar.stopSubtitles';
  19. }
  20. export default translate(connect(_abstractMapStateToProps)(
  21. ClosedCaptionButton));