Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import type { Notification } from 'stream-chat';
import type { NotificationTranslatorOptions } from './types';
import type { TranslationTopicOptions, Translator } from '../../index';
import { pollCreationFailedNotificationTranslator } from './pollComposition';
import { pollVoteCountTrespass } from './pollVoteCountTrespass';

export const defaultNotificationTranslators: Record<
string,
Expand All @@ -15,6 +16,7 @@ export const defaultNotificationTranslators: Record<
'api:attachment:upload:failed': attachmentUploadFailedNotificationTranslator,
'api:poll:create:failed': pollCreationFailedNotificationTranslator,
'validation:attachment:upload:blocked': attachmentUploadBlockedNotificationTranslator,
'validation:poll:castVote:limit': pollVoteCountTrespass,
};

export class NotificationTranslationTopic extends TranslationTopic<NotificationTranslatorOptions> {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import type { Translator } from '../TranslationBuilder';
import type { NotificationTranslatorOptions } from './types';

export const pollVoteCountTrespass: Translator<NotificationTranslatorOptions> = ({ t }) =>
t('Reached the vote limit. Remove an existing vote first.');
1 change: 1 addition & 0 deletions src/i18n/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@
"Poll results": "Umfrageergebnisse",
"Question": "Frage",
"Quote": "Zitieren",
"Reached the vote limit. Remove an existing vote first.": "Das Abstimmungslimit wurde erreicht. Entfernen Sie zuerst eine bestehende Stimme.",
"Recording format is not supported and cannot be reproduced": "Aufnahmeformat wird nicht unterstützt und kann nicht wiedergegeben werden",
"Remind Me": "Erinnern",
"Remove reminder": "Erinnerung entfernen",
Expand Down
1 change: 1 addition & 0 deletions src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@
"Poll results": "Poll results",
"Question": "Question",
"Quote": "Quote",
"Reached the vote limit. Remove an existing vote first.": "Reached the vote limit. Remove an existing vote first.",
"Recording format is not supported and cannot be reproduced": "Recording format is not supported and cannot be reproduced",
"Remind Me": "Remind Me",
"Remove reminder": "Remove reminder",
Expand Down
1 change: 1 addition & 0 deletions src/i18n/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@
"Poll results": "Resultados de la encuesta",
"Question": "Pregunta",
"Quote": "Citar",
"Reached the vote limit. Remove an existing vote first.": "Se ha alcanzado el límite de votos. Elimina un voto existente primero.",
"Recording format is not supported and cannot be reproduced": "El formato de grabación no es compatible y no se puede reproducir",
"Remind Me": "Recordarme",
"Remove reminder": "Eliminar recordatorio",
Expand Down
1 change: 1 addition & 0 deletions src/i18n/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@
"Poll results": "Résultats du sondage",
"Question": "Question",
"Quote": "Citer",
"Reached the vote limit. Remove an existing vote first.": "La limite de votes a été atteinte. Supprimez d'abord un vote existant.",
"Recording format is not supported and cannot be reproduced": "Le format d'enregistrement n'est pas pris en charge et ne peut pas être reproduit",
"Remind Me": "Me rappeler",
"Remove reminder": "Supprimer le rappel",
Expand Down
1 change: 1 addition & 0 deletions src/i18n/hi.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@
"Poll results": "मतदान परिणाम",
"Question": "प्रश्न",
"Quote": "उद्धरण",
"Reached the vote limit. Remove an existing vote first.": "मतदान सीमा तक पहुंच गया। पहले एक मौजूदा वोट हटाएं।",
"Recording format is not supported and cannot be reproduced": "रेकॉर्डिंग फ़ॉर्मेट समर्थित नहीं है और पुनः उत्पन्न नहीं किया जा सकता",
"Remind Me": "मुझे याद दिलाएं",
"Remove reminder": "रिमाइंडर हटाएं",
Expand Down
1 change: 1 addition & 0 deletions src/i18n/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@
"Poll results": "Risultati del sondaggio",
"Question": "Domanda",
"Quote": "Citazione",
"Reached the vote limit. Remove an existing vote first.": "Raggiunto il limite di voti. Rimuovi prima un voto esistente.",
"Recording format is not supported and cannot be reproduced": "Il formato di registrazione non è supportato e non può essere riprodotto",
"Remind Me": "Ricordami",
"Remove reminder": "Rimuovi promemoria",
Expand Down
1 change: 1 addition & 0 deletions src/i18n/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@
"Poll results": "投票結果",
"Question": "質問",
"Quote": "引用",
"Reached the vote limit. Remove an existing vote first.": "投票制限に達しました。既存の投票を先に削除してください。",
"Recording format is not supported and cannot be reproduced": "録音形式はサポートされておらず、再生できません",
"Remind Me": "リマインダー",
"Remove reminder": "リマインダーを削除",
Expand Down
1 change: 1 addition & 0 deletions src/i18n/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@
"Poll results": "투표 결과",
"Question": "질문",
"Quote": "인용",
"Reached the vote limit. Remove an existing vote first.": "투표 한도에 도달했습니다. 기존 투표를 먼저 제거하세요.",
"Recording format is not supported and cannot be reproduced": "녹음 형식이 지원되지 않으므로 재생할 수 없습니다",
"Remind Me": "알림 설정",
"Remove reminder": "알림 제거",
Expand Down
1 change: 1 addition & 0 deletions src/i18n/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@
"Poll results": "Peiling resultaten",
"Question": "Vraag",
"Quote": "Citeer",
"Reached the vote limit. Remove an existing vote first.": "Stemlimiet bereikt. Verwijder eerst een bestaande stem.",
"Recording format is not supported and cannot be reproduced": "Opnameformaat wordt niet ondersteund en kan niet worden gereproduceerd",
"Remind Me": "Herinner mij",
"Remove reminder": "Herinnering verwijderen",
Expand Down
1 change: 1 addition & 0 deletions src/i18n/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@
"Poll results": "Resultados da pesquisa",
"Question": "Pergunta",
"Quote": "Citar",
"Reached the vote limit. Remove an existing vote first.": "Limite de votos atingido. Remova um voto existente primeiro.",
"Recording format is not supported and cannot be reproduced": "Formato de gravação não é suportado e não pode ser reproduzido",
"Remind Me": "Lembrar-me",
"Remove reminder": "Remover lembrete",
Expand Down
1 change: 1 addition & 0 deletions src/i18n/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@
"Poll results": "Результаты опроса",
"Question": "Вопрос",
"Quote": "Цитировать",
"Reached the vote limit. Remove an existing vote first.": "Достигнут лимит голосов. Сначала удалите существующий голос.",
"Recording format is not supported and cannot be reproduced": "Формат записи не поддерживается и не может быть воспроизведен",
"Remind Me": "Напомнить мне",
"Remove reminder": "Удалить напоминание",
Expand Down
1 change: 1 addition & 0 deletions src/i18n/tr.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@
"Poll results": "Anket sonuçları",
"Question": "Soru",
"Quote": "Alıntı",
"Reached the vote limit. Remove an existing vote first.": "Oylama sınırına ulaşıldı. Önce mevcut bir oyu kaldırın.",
"Recording format is not supported and cannot be reproduced": "Kayıt formatı desteklenmiyor ve çoğaltılamıyor",
"Remind Me": "Hatırlat",
"Remove reminder": "Hatırlatıcıyı kaldır",
Expand Down