mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
Chore: Make text translatable
This commit is contained in:
parent
2cbf12bf0b
commit
98d45b1b81
@ -64,9 +64,9 @@ export default (props: Props) => {
|
||||
|
||||
const renderContent = () => {
|
||||
const components: Record<RecorderState, any> = {
|
||||
[RecorderState.Loading]: <Text variant="bodyMedium">Loading...</Text>,
|
||||
[RecorderState.Recording]: <Text variant="bodyMedium">Please record your voice...</Text>,
|
||||
[RecorderState.Processing]: <Text variant="bodyMedium">Converting speech to text...</Text>,
|
||||
[RecorderState.Loading]: <Text variant="bodyMedium">{_('Loading...')}</Text>,
|
||||
[RecorderState.Recording]: <Text variant="bodyMedium">{_('Please record your voice...')}</Text>,
|
||||
[RecorderState.Processing]: <Text variant="bodyMedium">{_('Converting speech to text...')}</Text>,
|
||||
};
|
||||
|
||||
return components[recorderState];
|
||||
@ -77,8 +77,8 @@ export default (props: Props) => {
|
||||
[RecorderState.Loading]: null,
|
||||
[RecorderState.Recording]: (
|
||||
<Dialog.Actions>
|
||||
<Button onPress={onDismiss}>Cancel</Button>
|
||||
<Button onPress={onStop}>Done</Button>
|
||||
<Button onPress={onDismiss}>{_('Cancel')}</Button>
|
||||
<Button onPress={onStop}>{_('Done')}</Button>
|
||||
</Dialog.Actions>
|
||||
),
|
||||
[RecorderState.Processing]: null,
|
||||
|
Loading…
Reference in New Issue
Block a user