Reload button labels

This commit is contained in:
Lucas Zawacki 2021-03-16 16:18:21 -03:00
parent 791c3394f6
commit eae1b78e82
4 changed files with 11 additions and 4 deletions

View File

@ -18,6 +18,9 @@ const intlMessages = defineMessages({
id: 'app.externalVideo.autoPlayWarning',
description: 'Shown when user needs to interact with player to make it work',
},
refreshLabel: {
id: 'app.externalVideo.refreshLabel',
},
});
const SYNC_INTERVAL_SECONDS = 5;
@ -502,7 +505,10 @@ class VideoPlayer extends Component {
onMuted={this.handleOnMuted}
onVolumeChanged={this.handleVolumeChanged}
/>
<ReloadButton handleReload={this.handleReload}></ReloadButton>
<ReloadButton
handleReload={this.handleReload}
label={intl.formatMessage(intlMessages.refreshLabel)}>
</ReloadButton>
</div>
: null
}

View File

@ -20,8 +20,8 @@ const DEBOUNCE_OPTIONS = {
};
const ReloadButtonComponent = ({
intl,
handleReload,
label,
}) => {
return (
@ -34,10 +34,9 @@ const ReloadButtonComponent = ({
onClick={_.debounce(handleReload, DEBOUNCE_TIMEOUT, DEBOUNCE_OPTIONS)}
label={label}
hideLabel
className={""}
/>
</div>
);
};
export default injectIntl(ReloadButtonComponent);
export default ReloadButtonComponent;

View File

@ -695,6 +695,7 @@
"app.externalVideo.urlError": "This video URL isn't supported",
"app.externalVideo.close": "Close",
"app.externalVideo.autoPlayWarning": "Play the video to enable media synchronization",
"app.externalVideo.refreshLabel": "Reload Video",
"app.network.connection.effective.slow": "We're noticing connectivity issues.",
"app.network.connection.effective.slow.help": "More information",
"app.externalVideo.noteLabel": "Note: Shared external videos will not appear in the recording. YouTube, Vimeo, Instructure Media, Twitch and Daily Motion URLs are supported.",

View File

@ -664,6 +664,7 @@
"app.externalVideo.urlError": "Essa URL de vídeo não é suportada",
"app.externalVideo.close": "Fechar",
"app.externalVideo.autoPlayWarning": "Clique no vídeo para habilitar a sincronização",
"app.externalVideo.refreshLabel": "Recarregar vídeo",
"app.network.connection.effective.slow": "Estamos percebendo problemas de conectividade.",
"app.network.connection.effective.slow.help": "Mais informações",
"app.externalVideo.noteLabel": "Nota: vídeos externos compartilhados não aprecerão na gravação. Videos de YouTube, Vimeo, Instructure Media, Twitch e Daily Motion são suportados.",