Skip to content

Commit d4c8a8e

Browse files
committed
fix: publish notification on poll vote casting limit trespass
1 parent e518a82 commit d4c8a8e

File tree

14 files changed

+19
-0
lines changed

14 files changed

+19
-0
lines changed

โ€Žsrc/i18n/TranslationBuilder/notifications/NotificationTranslationTopic.tsโ€Ž

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import type { Notification } from 'stream-chat';
77
import type { NotificationTranslatorOptions } from './types';
88
import type { TranslationTopicOptions, Translator } from '../../index';
99
import { pollCreationFailedNotificationTranslator } from './pollComposition';
10+
import { pollVoteCountTrespass } from './pollVoteCountTrespass';
1011

1112
export const defaultNotificationTranslators: Record<
1213
string,
@@ -15,6 +16,7 @@ export const defaultNotificationTranslators: Record<
1516
'api:attachment:upload:failed': attachmentUploadFailedNotificationTranslator,
1617
'api:poll:create:failed': pollCreationFailedNotificationTranslator,
1718
'validation:attachment:upload:blocked': attachmentUploadBlockedNotificationTranslator,
19+
'validation:poll:castVote:limit': pollVoteCountTrespass,
1820
};
1921

2022
export class NotificationTranslationTopic extends TranslationTopic<NotificationTranslatorOptions> {
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import type { Translator } from '../TranslationBuilder';
2+
import type { NotificationTranslatorOptions } from './types';
3+
4+
export const pollVoteCountTrespass: Translator<NotificationTranslatorOptions> = ({ t }) =>
5+
t('Reached the vote limit. Remove an existing vote first.');

โ€Žsrc/i18n/de.jsonโ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@
109109
"Poll results": "Umfrageergebnisse",
110110
"Question": "Frage",
111111
"Quote": "Zitieren",
112+
"Reached the vote limit. Remove an existing vote first.": "Das Abstimmungslimit wurde erreicht. Entfernen Sie zuerst eine bestehende Stimme.",
112113
"Recording format is not supported and cannot be reproduced": "Aufnahmeformat wird nicht unterstรผtzt und kann nicht wiedergegeben werden",
113114
"Remind Me": "Erinnern",
114115
"Remove reminder": "Erinnerung entfernen",

โ€Žsrc/i18n/en.jsonโ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@
109109
"Poll results": "Poll results",
110110
"Question": "Question",
111111
"Quote": "Quote",
112+
"Reached the vote limit. Remove an existing vote first.": "Reached the vote limit. Remove an existing vote first.",
112113
"Recording format is not supported and cannot be reproduced": "Recording format is not supported and cannot be reproduced",
113114
"Remind Me": "Remind Me",
114115
"Remove reminder": "Remove reminder",

โ€Žsrc/i18n/es.jsonโ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@
109109
"Poll results": "Resultados de la encuesta",
110110
"Question": "Pregunta",
111111
"Quote": "Citar",
112+
"Reached the vote limit. Remove an existing vote first.": "Se ha alcanzado el lรญmite de votos. Elimina un voto existente primero.",
112113
"Recording format is not supported and cannot be reproduced": "El formato de grabaciรณn no es compatible y no se puede reproducir",
113114
"Remind Me": "Recordarme",
114115
"Remove reminder": "Eliminar recordatorio",

โ€Žsrc/i18n/fr.jsonโ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@
109109
"Poll results": "Rรฉsultats du sondage",
110110
"Question": "Question",
111111
"Quote": "Citer",
112+
"Reached the vote limit. Remove an existing vote first.": "La limite de votes a รฉtรฉ atteinte. Supprimez d'abord un vote existant.",
112113
"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",
113114
"Remind Me": "Me rappeler",
114115
"Remove reminder": "Supprimer le rappel",

โ€Žsrc/i18n/hi.jsonโ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@
110110
"Poll results": "เคฎเคคเคฆเคพเคจ เคชเคฐเคฟเคฃเคพเคฎ",
111111
"Question": "เคชเฅเคฐเคถเฅเคจ",
112112
"Quote": "เค‰เคฆเฅเคงเคฐเคฃ",
113+
"Reached the vote limit. Remove an existing vote first.": "เคฎเคคเคฆเคพเคจ เคธเฅ€เคฎเคพ เคคเค• เคชเคนเฅเค‚เคš เค—เคฏเคพเฅค เคชเคนเคฒเฅ‡ เคเค• เคฎเฅŒเคœเฅ‚เคฆเคพ เคตเฅ‹เคŸ เคนเคŸเคพเคเค‚เฅค",
113114
"Recording format is not supported and cannot be reproduced": "เคฐเฅ‡เค•เฅ‰เคฐเฅเคกเคฟเค‚เค— เคซเคผเฅ‰เคฐเฅเคฎเฅ‡เคŸ เคธเคฎเคฐเฅเคฅเคฟเคค เคจเคนเฅ€เค‚ เคนเฅˆ เค”เคฐ เคชเฅเคจเคƒ เค‰เคคเฅเคชเคจเฅเคจ เคจเคนเฅ€เค‚ เค•เคฟเคฏเคพ เคœเคพ เคธเค•เคคเคพ",
114115
"Remind Me": "เคฎเฅเคเฅ‡ เคฏเคพเคฆ เคฆเคฟเคฒเคพเคเค‚",
115116
"Remove reminder": "เคฐเคฟเคฎเคพเค‡เค‚เคกเคฐ เคนเคŸเคพเคเค‚",

โ€Žsrc/i18n/it.jsonโ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@
109109
"Poll results": "Risultati del sondaggio",
110110
"Question": "Domanda",
111111
"Quote": "Citazione",
112+
"Reached the vote limit. Remove an existing vote first.": "Raggiunto il limite di voti. Rimuovi prima un voto esistente.",
112113
"Recording format is not supported and cannot be reproduced": "Il formato di registrazione non รจ supportato e non puรฒ essere riprodotto",
113114
"Remind Me": "Ricordami",
114115
"Remove reminder": "Rimuovi promemoria",

โ€Žsrc/i18n/ja.jsonโ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@
109109
"Poll results": "ๆŠ•็ฅจ็ตๆžœ",
110110
"Question": "่ณชๅ•",
111111
"Quote": "ๅผ•็”จ",
112+
"Reached the vote limit. Remove an existing vote first.": "ๆŠ•็ฅจๅˆถ้™ใซ้”ใ—ใพใ—ใŸใ€‚ๆ—ขๅญ˜ใฎๆŠ•็ฅจใ‚’ๅ…ˆใซๅ‰Š้™คใ—ใฆใใ ใ•ใ„ใ€‚",
112113
"Recording format is not supported and cannot be reproduced": "้Œฒ้Ÿณๅฝขๅผใฏใ‚ตใƒใƒผใƒˆใ•ใ‚ŒใฆใŠใ‚‰ใšใ€ๅ†็”Ÿใงใใพใ›ใ‚“",
113114
"Remind Me": "ใƒชใƒžใ‚คใƒณใƒ€ใƒผ",
114115
"Remove reminder": "ใƒชใƒžใ‚คใƒณใƒ€ใƒผใ‚’ๅ‰Š้™ค",

โ€Žsrc/i18n/ko.jsonโ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@
109109
"Poll results": "ํˆฌํ‘œ ๊ฒฐ๊ณผ",
110110
"Question": "์งˆ๋ฌธ",
111111
"Quote": "์ธ์šฉ",
112+
"Reached the vote limit. Remove an existing vote first.": "ํˆฌํ‘œ ํ•œ๋„์— ๋„๋‹ฌํ–ˆ์Šต๋‹ˆ๋‹ค. ๊ธฐ์กด ํˆฌํ‘œ๋ฅผ ๋จผ์ € ์ œ๊ฑฐํ•˜์„ธ์š”.",
112113
"Recording format is not supported and cannot be reproduced": "๋…น์Œ ํ˜•์‹์ด ์ง€์›๋˜์ง€ ์•Š์œผ๋ฏ€๋กœ ์žฌ์ƒํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค",
113114
"Remind Me": "์•Œ๋ฆผ ์„ค์ •",
114115
"Remove reminder": "์•Œ๋ฆผ ์ œ๊ฑฐ",

0 commit comments

Comments
ย (0)