Skip to content

Commit f79bc2b

Browse files
authored
fix: add translations for slide to cancel text in async audio (#2949)
1 parent 2cd490e commit f79bc2b

File tree

13 files changed

+17
-1
lines changed

13 files changed

+17
-1
lines changed

package/src/components/MessageInput/components/AudioRecorder/AudioRecorder.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {
1010
useMessageInputContext,
1111
} from '../../../../contexts/messageInputContext/MessageInputContext';
1212
import { useTheme } from '../../../../contexts/themeContext/ThemeContext';
13+
import { useTranslationContext } from '../../../../contexts/translationContext/TranslationContext';
1314
import { ArrowLeft, CircleStop, Delete, Mic, SendCheck } from '../../../../icons';
1415

1516
import { AudioRecordingReturnType } from '../../../../native';
@@ -142,6 +143,7 @@ const AudioRecorderWithContext = <
142143
stopVoiceRecording,
143144
uploadVoiceRecording,
144145
} = props;
146+
const { t } = useTranslationContext();
145147

146148
const {
147149
theme: {
@@ -189,7 +191,9 @@ const AudioRecorderWithContext = <
189191
<Animated.View
190192
style={[styles.slideToCancelContainer, slideToCancelStyle, slideToCancelContainer]}
191193
>
192-
<Text style={[styles.slideToCancel, { color: grey_dark }]}>Slide to Cancel</Text>
194+
<Text style={[styles.slideToCancel, { color: grey_dark }]}>
195+
{t<string>('Slide to Cancel')}
196+
</Text>
193197
<ArrowLeft fill={grey_dark} size={24} {...arrowLeftIcon} />
194198
</Animated.View>
195199
</>

package/src/i18n/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@
9494
"Send a message": "Send a message",
9595
"Sending links is not allowed in this conversation": "Sending links is not allowed in this conversation",
9696
"Show All": "Show All",
97+
"Slide to Cancel": "Slide to Cancel",
9798
"Slow mode ON": "Slow mode ON",
9899
"Suggest an option": "Suggest an option",
99100
"The message has been reported to a moderator.": "The message has been reported to a moderator.",

package/src/i18n/es.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@
9696
"Send a message": "Enviar un mensaje",
9797
"Sending links is not allowed in this conversation": "No está permitido enviar enlaces en esta conversación",
9898
"Show All": "Mostrar todo",
99+
"Slide to Cancel": "Desliza para cancelar",
99100
"Slow mode ON": "Modo lento ACTIVADO",
100101
"Suggest an option": "Sugerir una opción",
101102
"The message has been reported to a moderator.": "El mensaje ha sido reportado a un moderador.",

package/src/i18n/fr.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@
9696
"Send a message": "Envoyer un message",
9797
"Sending links is not allowed in this conversation": "Sending links is not allowed in this conversation",
9898
"Show All": "Afficher tout",
99+
"Slide to Cancel": "Glisser pour annuler",
99100
"Slow mode ON": "Mode lent activé",
100101
"Suggest an option": "Suggérer une option",
101102
"The message has been reported to a moderator.": "Le message a été signalé à un modérateur.",

package/src/i18n/he.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@
9696
"Send a message": "שלח/י הודעה",
9797
"Sending links is not allowed in this conversation": "שליחת קישורים אינה מותרת בשיחה זו",
9898
"Show All": "הצג הכל",
99+
"Slide to Cancel": "גלגל/י כדי לבטל",
99100
"Slow mode ON": "מצב איטי מופעל",
100101
"Suggest an option": "הצע אפשרות",
101102
"The message has been reported to a moderator.": "ההודעה דווחה למנהל",

package/src/i18n/hi.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@
9494
"Send a message": "एक संदेश भेजें",
9595
"Sending links is not allowed in this conversation": "इस बातचीत में लिंक भेजने की अनुमति नहीं है",
9696
"Show All": "सभी दिखाएं",
97+
"Slide to Cancel": "स्लाइड करके रद्द करें",
9798
"Slow mode ON": "स्लो मोड चालू",
9899
"Suggest an option": "एक विकल्प सुझाएं",
99100
"The message has been reported to a moderator.": "संदेश एक मॉडरेटर को सूचित किया गया है।",

package/src/i18n/it.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@
9696
"Send a message": "Mandare un messaggio",
9797
"Sending links is not allowed in this conversation": "L'invio di link non è consentito in questa conversazione",
9898
"Show All": "Mostra tutto",
99+
"Slide to Cancel": "Scorri per annullare",
99100
"Slow mode ON": "Slowmode attiva",
100101
"Suggest an option": "Suggerisci un'opzione",
101102
"The message has been reported to a moderator.": "Il messaggio è stato segnalato a un moderatore.",

package/src/i18n/ja.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@
9494
"Send a message": "メッセージを送る",
9595
"Sending links is not allowed in this conversation": "この会話ではリンク機能を使用できません。",
9696
"Show All": "すべて表示",
97+
"Slide to Cancel": "スライドしてキャンセル",
9798
"Slow mode ON": "スローモードオン",
9899
"Suggest an option": "オプションを提案",
99100
"The message has been reported to a moderator.": "メッセージはモデレーターに報告されました。",

package/src/i18n/ko.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@
9494
"Send a message": "메세지를 보내다",
9595
"Sending links is not allowed in this conversation": "이 대화에서는 링크 기능을 사용할 수 없습니다",
9696
"Show All": "모두 보기",
97+
"Slide to Cancel": "슬라이드하여 취소",
9798
"Slow mode ON": "슬로모드 켜짐",
9899
"Suggest an option": "옵션 제안",
99100
"The message has been reported to a moderator.": "메시지는 운영자에보고되었습니다.",

package/src/i18n/nl.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@
9494
"Send a message": "Stuur een bericht",
9595
"Sending links is not allowed in this conversation": "In dit gesprek is het niet toegestaan links te versturen",
9696
"Show All": "Alles weergeven",
97+
"Slide to Cancel": "Slide om te annuleren",
9798
"Slow mode ON": "Langzame modus aan",
9899
"Suggest an option": "Stel een optie voor",
99100
"The message has been reported to a moderator.": "Het bericht is gerapporteerd aan een moderator.",

0 commit comments

Comments
 (0)