Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/quick change voice #1044

Merged
merged 4 commits into from
Oct 13, 2021
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion src/components/Board/Board.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ import { DEFAULT_ROWS_NUMBER, DEFAULT_COLUMNS_NUMBER } from './Board.constants';

import Joyride, { STATUS } from 'react-joyride';

import { Link } from 'react-router-dom';

import messages from './Board.messages';
import { FormattedMessage } from 'react-intl';

Expand Down Expand Up @@ -466,7 +468,21 @@ export class Board extends Component {
</Alert>
)}
{offlineVoiceAlert && (
<Alert variant="filled" severity="warning">
<Alert
variant="filled"
severity="warning"
action={
<Button
size="small"
variant="outlined"
style={{ color: 'white', borderColor: 'white' }}
component={Link}
to="/settings/speech"
>
{intl.formatMessage(messages.offlineChangeVoice)}
</Button>
}
>
{intl.formatMessage(messages.offlineVoiceAlert)}
</Alert>
)}
Expand Down
4 changes: 4 additions & 0 deletions src/components/Board/Board.messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ export default defineMessages({
defaultMessage:
'WARNING: you are using an online voice, but it looks you are offline! Cboard might not work properly.'
},
offlineChangeVoice: {
id: 'cboard.components.Board.offlineChangeVoice',
defaultMessage: 'Change voice'
},
myBoardTitle: {
id: 'cboard.components.Board.myBoardTitle',
defaultMessage: 'My Board'
Expand Down
1 change: 1 addition & 0 deletions src/translations/src/cboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@
"cboard.components.Board.boardCopyAccept": "Accept",
"cboard.components.Board.boardCopiedSuccessfully": "Board successfully added to your Communicator",
"cboard.components.Board.emptyVoiceAlert": "WARNING: we did not detect an available Text to Speech voice! Cboard cannot work properly.",
"cboard.components.Board.offlineVoiceAlert": "Change voice",
"cboard.components.Board.myBoardTitle": "My Board",
"cboard.components.Board.failedToCopy": "Failed to copy to clipboard",
"cboard.components.Board.walkthroughWelcome": "Welcome to Cboard!",
Expand Down