Skip to content

Commit f3305ab

Browse files
committed
chore: translations
1 parent e248602 commit f3305ab

File tree

13 files changed

+28
-3
lines changed

13 files changed

+28
-3
lines changed

package/src/components/AITypingIndicatorView/AITypingIndicatorView.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { Channel } from 'stream-chat';
66

77
import { AIStates, useAIState } from './hooks/useAIState';
88

9-
import { useChannelContext, useTheme } from '../../contexts';
9+
import { useChannelContext, useTheme, useTranslationContext } from '../../contexts';
1010
import type { DefaultStreamChatGenerics } from '../../types/types';
1111

1212
export type AITypingIndicatorViewProps<
@@ -20,13 +20,14 @@ export const AITypingIndicatorView = <
2020
>({
2121
channel: channelFromProps,
2222
}: AITypingIndicatorViewProps<StreamChatGenerics>) => {
23+
const { t } = useTranslationContext();
2324
const { channel: channelFromContext } = useChannelContext<StreamChatGenerics>();
2425
const channel = channelFromProps || channelFromContext;
2526
const { aiState } = useAIState(channel);
2627
// TODO: Translations
2728
const allowedStates = {
28-
[AIStates.Thinking]: 'Thinking...',
29-
[AIStates.Generating]: 'Generating...',
29+
[AIStates.Thinking]: t('Thinking...'),
30+
[AIStates.Generating]: t('Generating...'),
3031
};
3132

3233
const {

package/src/i18n/en.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"Flag": "Flag",
3939
"Flag Message": "Flag Message",
4040
"Flag action failed either due to a network issue or the message is already flagged": "Flag action failed either due to a network issue or the message is already flagged.",
41+
"Generating...": "Generating...",
4142
"Hold to start recording.": "Hold to start recording.",
4243
"How about sending your first message to a friend?": "How about sending your first message to a friend?",
4344
"Instant Commands": "Instant Commands",
@@ -95,6 +96,7 @@
9596
"Suggest an option": "Suggest an option",
9697
"The message has been reported to a moderator.": "The message has been reported to a moderator.",
9798
"The source message was deleted": "The source message was deleted",
99+
"Thinking...": "Thinking...",
98100
"This is already an option": "This is already an option",
99101
"This reply was deleted": "This reply was deleted",
100102
"Thread Reply": "Thread Reply",

package/src/i18n/es.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"Flag": "Reportar",
3939
"Flag Message": "Reportar mensaje",
4040
"Flag action failed either due to a network issue or the message is already flagged": "El reporte falló debido a un problema de red o el mensaje ya fue reportado.",
41+
"Generating...": "Generando...",
4142
"Hold to start recording.": "Mantén presionado para comenzar a grabar.",
4243
"How about sending your first message to a friend?": "¿Qué tal enviar tu primer mensaje a un amigo?",
4344
"Instant Commands": "Comandos instantáneos",
@@ -97,6 +98,7 @@
9798
"Suggest an option": "Sugerir una opción",
9899
"The message has been reported to a moderator.": "El mensaje ha sido reportado a un moderador.",
99100
"The source message was deleted": "El mensaje original fue eliminado",
101+
"Thinking...": "Pensando...",
100102
"This is already an option": "Esto ya es una opción",
101103
"This reply was deleted": "Esta respuesta fue eliminada",
102104
"Thread Reply": "Respuesta de hilo",

package/src/i18n/fr.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"Flag": "Signaler",
3939
"Flag Message": "Signaler le message",
4040
"Flag action failed either due to a network issue or the message is already flagged": "L'action de signalisation a échoué en raison d'un problème de réseau ou le message est déjà signalé.",
41+
"Generating...": "Génération...",
4142
"Hold to start recording.": "Hold to start recording.",
4243
"How about sending your first message to a friend?": "Et si vous envoyiez votre premier message à un ami ?",
4344
"Instant Commands": "Commandes Instantanées",
@@ -97,6 +98,7 @@
9798
"Suggest an option": "Suggérer une option",
9899
"The message has been reported to a moderator.": "Le message a été signalé à un modérateur.",
99100
"The source message was deleted": "Le message source a été supprimé",
101+
"Thinking...": "Réflexion...",
100102
"This is already an option": "C'est déjà une option",
101103
"This reply was deleted": "Cette réponse a été supprimée",
102104
"Thread Reply": "Réponse à la discussion",

package/src/i18n/he.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"Flag": "סמן",
3939
"Flag Message": "סמן הודעה",
4040
"Flag action failed either due to a network issue or the message is already flagged": "פעולת הסימון נכשלה בגלל בעיית רשת או שההודעה כבר סומנה.",
41+
"Generating...": "מייצר...",
4142
"Hold to start recording.": "לחץ והחזק כדי להתחיל להקליט.",
4243
"How about sending your first message to a friend?": "מה דעתך לשלוח את ההודעה הראשונה שלך לחבר?",
4344
"Instant Commands": "פעולות מיידיות",
@@ -97,6 +98,7 @@
9798
"Suggest an option": "הצע אפשרות",
9899
"The message has been reported to a moderator.": "ההודעה דווחה למנהל",
99100
"The source message was deleted": "ההודעה המקורית נמחקה",
101+
"Thinking...": "חושב...",
100102
"This is already an option": "זו כבר אפשרות קיימת",
101103
"This reply was deleted": "התגובה הזו נמחקה",
102104
"Thread Reply": "הגב/י בשרשור",

package/src/i18n/hi.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"Flag": "झंडा",
3939
"Flag Message": "झंडा संदेश",
4040
"Flag action failed either due to a network issue or the message is already flagged": "फ़्लैग कार्रवाई या तो नेटवर्क समस्या के कारण विफल हो गई या संदेश पहले से फ़्लैग किया गया है।",
41+
"Generating...": "जनरेट कर रहा है...",
4142
"Hold to start recording.": "रिकॉर्डिंग शुरू करने के लिए दबाएं।",
4243
"How about sending your first message to a friend?": "किसी मित्र को अपना पहला संदेश भेजने के बारे में क्या ख़याल है?",
4344
"Instant Commands": "त्वरित कमांड",
@@ -95,6 +96,7 @@
9596
"Suggest an option": "एक विकल्प सुझाएं",
9697
"The message has been reported to a moderator.": "संदेश एक मॉडरेटर को सूचित किया गया है।",
9798
"The source message was deleted": "स्रोत संदेश हटा दिया गया है",
99+
"Thinking...": "सोच रहा है...",
98100
"This is already an option": "यह पहले से एक विकल्प है",
99101
"This reply was deleted": "यह उत्तर हटा दिया गया है",
100102
"Thread Reply": "धागा जवाब",

package/src/i18n/it.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"Flag": "Contrassegna",
3939
"Flag Message": "Contrassegna Messaggio",
4040
"Flag action failed either due to a network issue or the message is already flagged": "L'azione di segnalazione non è riuscita a causa di un problema di rete o il messaggio è già segnalato.",
41+
"Generating...": "Generando...",
4142
"Hold to start recording.": "Tieni premuto per avviare la registrazione.",
4243
"How about sending your first message to a friend?": "Che ne dici di inviare il tuo primo messaggio ad un amico?",
4344
"Instant Commands": "Comandi Istantanei",
@@ -97,6 +98,7 @@
9798
"Suggest an option": "Suggerisci un'opzione",
9899
"The message has been reported to a moderator.": "Il messaggio è stato segnalato a un moderatore.",
99100
"The source message was deleted": "Il messaggio originale è stato eliminato",
101+
"Thinking...": "Pensando...",
100102
"This is already an option": "Questa è già un'opzione",
101103
"This reply was deleted": "Questa risposta è stata eliminata",
102104
"Thread Reply": "Rispondi alla Discussione",

package/src/i18n/ja.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"Flag": "フラグ",
3939
"Flag Message": "メッセージをフラグする",
4040
"Flag action failed either due to a network issue or the message is already flagged": "ネットワーク接続に問題があるか、すでにフラグが設定されているため、フラグが失敗しました。",
41+
"Generating...": "生成中...",
4142
"Hold to start recording.": "録音を開始するには押し続けてください。",
4243
"How about sending your first message to a friend?": "初めてのメッセージを友達に送ってみてはいかがでしょうか?",
4344
"Instant Commands": "インスタントコマンド",
@@ -95,6 +96,7 @@
9596
"Suggest an option": "オプションを提案",
9697
"The message has been reported to a moderator.": "メッセージはモデレーターに報告されました。",
9798
"The source message was deleted": "元のメッセージが削除されました",
99+
"Thinking...": "考え中...",
98100
"This is already an option": "これはすでにオプションです",
99101
"This reply was deleted": "この返信は削除されました",
100102
"Thread Reply": "スレッドの返信",

package/src/i18n/ko.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"Flag": "플래그",
3939
"Flag Message": "메시지를 플래그하기",
4040
"Flag action failed either due to a network issue or the message is already flagged": "네트워크 연결에 문제가 있거나 이미 플래그 되어서 플래그에 실패했습니다.",
41+
"Generating...": "생성 중...",
4142
"Hold to start recording.": "녹음을 시작하려면 눌러주세요.",
4243
"How about sending your first message to a friend?": "친구에게 첫 번째 메시지를 보내는 것은 어떻습니까?",
4344
"Instant Commands": "인스턴트 명령",
@@ -95,6 +96,7 @@
9596
"Suggest an option": "옵션 제안",
9697
"The message has been reported to a moderator.": "메시지는 운영자에보고되었습니다.",
9798
"The source message was deleted": "원본 메시지가 삭제되었습니다",
99+
"Thinking...": "생각 중...",
98100
"This is already an option": "이미 존재하는 옵션입니다",
99101
"This reply was deleted": "이 답글은 삭제되었습니다",
100102
"Thread Reply": "스레드\u3000답장",

package/src/i18n/nl.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"Flag": "Markeer",
3939
"Flag Message": "Markeer bericht",
4040
"Flag action failed either due to a network issue or the message is already flagged": "Rapporteren mislukt door een netwerk fout of het berich is al gerapporteerd",
41+
"Generating...": "Aan het genereren...",
4142
"Hold to start recording.": "Houd vast om opname te starten.",
4243
"How about sending your first message to a friend?": "Wat dacht je ervan om je eerste bericht naar een vriend te sturen?",
4344
"Instant Commands": "Directe Opdrachten",
@@ -95,6 +96,7 @@
9596
"Suggest an option": "Stel een optie voor",
9697
"The message has been reported to a moderator.": "Het bericht is gerapporteerd aan een moderator.",
9798
"The source message was deleted": "Het oorspronkelijke bericht is verwijderd",
99+
"Thinking...": "Aan het denken...",
98100
"This is already an option": "Dit is al een optie",
99101
"This reply was deleted": "Deze reactie is verwijderd",
100102
"Thread Reply": "Discussie beantwoorden",

0 commit comments

Comments
 (0)