Skip to content

Commit

Permalink
fix: add translations for slide to cancel text in async audio (#2949)
Browse files Browse the repository at this point in the history
  • Loading branch information
khushal87 authored Feb 13, 2025
1 parent 2cd490e commit f79bc2b
Show file tree
Hide file tree
Showing 13 changed files with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
useMessageInputContext,
} from '../../../../contexts/messageInputContext/MessageInputContext';
import { useTheme } from '../../../../contexts/themeContext/ThemeContext';
import { useTranslationContext } from '../../../../contexts/translationContext/TranslationContext';
import { ArrowLeft, CircleStop, Delete, Mic, SendCheck } from '../../../../icons';

import { AudioRecordingReturnType } from '../../../../native';
Expand Down Expand Up @@ -142,6 +143,7 @@ const AudioRecorderWithContext = <
stopVoiceRecording,
uploadVoiceRecording,
} = props;
const { t } = useTranslationContext();

const {
theme: {
Expand Down Expand Up @@ -189,7 +191,9 @@ const AudioRecorderWithContext = <
<Animated.View
style={[styles.slideToCancelContainer, slideToCancelStyle, slideToCancelContainer]}
>
<Text style={[styles.slideToCancel, { color: grey_dark }]}>Slide to Cancel</Text>
<Text style={[styles.slideToCancel, { color: grey_dark }]}>
{t<string>('Slide to Cancel')}
</Text>
<ArrowLeft fill={grey_dark} size={24} {...arrowLeftIcon} />
</Animated.View>
</>
Expand Down
1 change: 1 addition & 0 deletions package/src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
"Send a message": "Send a message",
"Sending links is not allowed in this conversation": "Sending links is not allowed in this conversation",
"Show All": "Show All",
"Slide to Cancel": "Slide to Cancel",
"Slow mode ON": "Slow mode ON",
"Suggest an option": "Suggest an option",
"The message has been reported to a moderator.": "The message has been reported to a moderator.",
Expand Down
1 change: 1 addition & 0 deletions package/src/i18n/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
"Send a message": "Enviar un mensaje",
"Sending links is not allowed in this conversation": "No está permitido enviar enlaces en esta conversación",
"Show All": "Mostrar todo",
"Slide to Cancel": "Desliza para cancelar",
"Slow mode ON": "Modo lento ACTIVADO",
"Suggest an option": "Sugerir una opción",
"The message has been reported to a moderator.": "El mensaje ha sido reportado a un moderador.",
Expand Down
1 change: 1 addition & 0 deletions package/src/i18n/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
"Send a message": "Envoyer un message",
"Sending links is not allowed in this conversation": "Sending links is not allowed in this conversation",
"Show All": "Afficher tout",
"Slide to Cancel": "Glisser pour annuler",
"Slow mode ON": "Mode lent activé",
"Suggest an option": "Suggérer une option",
"The message has been reported to a moderator.": "Le message a été signalé à un modérateur.",
Expand Down
1 change: 1 addition & 0 deletions package/src/i18n/he.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
"Send a message": "שלח/י הודעה",
"Sending links is not allowed in this conversation": "שליחת קישורים אינה מותרת בשיחה זו",
"Show All": "הצג הכל",
"Slide to Cancel": "גלגל/י כדי לבטל",
"Slow mode ON": "מצב איטי מופעל",
"Suggest an option": "הצע אפשרות",
"The message has been reported to a moderator.": "ההודעה דווחה למנהל",
Expand Down
1 change: 1 addition & 0 deletions package/src/i18n/hi.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
"Send a message": "एक संदेश भेजें",
"Sending links is not allowed in this conversation": "इस बातचीत में लिंक भेजने की अनुमति नहीं है",
"Show All": "सभी दिखाएं",
"Slide to Cancel": "स्लाइड करके रद्द करें",
"Slow mode ON": "स्लो मोड चालू",
"Suggest an option": "एक विकल्प सुझाएं",
"The message has been reported to a moderator.": "संदेश एक मॉडरेटर को सूचित किया गया है।",
Expand Down
1 change: 1 addition & 0 deletions package/src/i18n/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
"Send a message": "Mandare un messaggio",
"Sending links is not allowed in this conversation": "L'invio di link non è consentito in questa conversazione",
"Show All": "Mostra tutto",
"Slide to Cancel": "Scorri per annullare",
"Slow mode ON": "Slowmode attiva",
"Suggest an option": "Suggerisci un'opzione",
"The message has been reported to a moderator.": "Il messaggio è stato segnalato a un moderatore.",
Expand Down
1 change: 1 addition & 0 deletions package/src/i18n/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
"Send a message": "メッセージを送る",
"Sending links is not allowed in this conversation": "この会話ではリンク機能を使用できません。",
"Show All": "すべて表示",
"Slide to Cancel": "スライドしてキャンセル",
"Slow mode ON": "スローモードオン",
"Suggest an option": "オプションを提案",
"The message has been reported to a moderator.": "メッセージはモデレーターに報告されました。",
Expand Down
1 change: 1 addition & 0 deletions package/src/i18n/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
"Send a message": "메세지를 보내다",
"Sending links is not allowed in this conversation": "이 대화에서는 링크 기능을 사용할 수 없습니다",
"Show All": "모두 보기",
"Slide to Cancel": "슬라이드하여 취소",
"Slow mode ON": "슬로모드 켜짐",
"Suggest an option": "옵션 제안",
"The message has been reported to a moderator.": "메시지는 운영자에보고되었습니다.",
Expand Down
1 change: 1 addition & 0 deletions package/src/i18n/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
"Send a message": "Stuur een bericht",
"Sending links is not allowed in this conversation": "In dit gesprek is het niet toegestaan links te versturen",
"Show All": "Alles weergeven",
"Slide to Cancel": "Slide om te annuleren",
"Slow mode ON": "Langzame modus aan",
"Suggest an option": "Stel een optie voor",
"The message has been reported to a moderator.": "Het bericht is gerapporteerd aan een moderator.",
Expand Down
1 change: 1 addition & 0 deletions package/src/i18n/pt-br.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
"Send a message": "Enviar uma mensagem",
"Sending links is not allowed in this conversation": "Não é permitido enviar links nesta conversa",
"Show All": "Mostrar tudo",
"Slide to Cancel": "Deslize para cancelar",
"Slow mode ON": "Modo Lento ATIVADO",
"Suggest an option": "Sugerir uma opção",
"The message has been reported to a moderator.": "A mensagem foi relatada a um moderador.",
Expand Down
1 change: 1 addition & 0 deletions package/src/i18n/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@
"Send a message": "Отправить сообщение",
"Sending links is not allowed in this conversation": "Отправка ссылок недоступна в этом чате",
"Show All": "Показать все",
"Slide to Cancel": "Слайд для отмены",
"Slow mode ON": "Медленный режим включен",
"Suggest an option": "Предложить вариант",
"The message has been reported to a moderator.": "Сообщение отправлено модератору.",
Expand Down
1 change: 1 addition & 0 deletions package/src/i18n/tr.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
"Send a message": "Mesaj gönder",
"Sending links is not allowed in this conversation": "Bu konuşmada bağlantı göndermek desteklenmiyor",
"Show All": "Hepsini göster",
"Slide to Cancel": "Silmek için kaydırın",
"Slow mode ON": "Yavaş Mod Açık",
"Suggest an option": "Bir seçenek öner",
"The message has been reported to a moderator.": "Mesaj moderatöre bildirildi.",
Expand Down

0 comments on commit f79bc2b

Please sign in to comment.