stream-chat-react-native-core 5.29.1-beta.4 → 5.30.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/components/Channel/Channel.js +4 -2
- package/lib/commonjs/components/Channel/Channel.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js +2 -2
- package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/hooks/useLatestMessagePreview.js +1 -1
- package/lib/commonjs/components/ChannelPreview/hooks/useLatestMessagePreview.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js +6 -14
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
- package/lib/commonjs/components/Message/Message.js +11 -0
- package/lib/commonjs/components/Message/Message.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageContent.js +12 -27
- package/lib/commonjs/components/Message/MessageSimple/MessageContent.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageDeleted.js +10 -12
- package/lib/commonjs/components/Message/MessageSimple/MessageDeleted.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageEditedTimestamp.js +55 -0
- package/lib/commonjs/components/Message/MessageSimple/MessageEditedTimestamp.js.map +1 -0
- package/lib/commonjs/components/Message/MessageSimple/MessageFooter.js +94 -58
- package/lib/commonjs/components/Message/MessageSimple/MessageFooter.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageSimple.js +6 -0
- package/lib/commonjs/components/Message/MessageSimple/MessageSimple.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageTimestamp.js +48 -0
- package/lib/commonjs/components/Message/MessageSimple/MessageTimestamp.js.map +1 -0
- package/lib/commonjs/components/Message/hooks/useCreateMessageContext.js +5 -1
- package/lib/commonjs/components/Message/hooks/useCreateMessageContext.js.map +1 -1
- package/lib/commonjs/components/MessageList/InlineDateSeparator.js +6 -2
- package/lib/commonjs/components/MessageList/InlineDateSeparator.js.map +1 -1
- package/lib/commonjs/components/MessageList/MessageList.js +9 -6
- package/lib/commonjs/components/MessageList/MessageList.js.map +1 -1
- package/lib/commonjs/components/MessageList/MessageSystem.js +30 -27
- package/lib/commonjs/components/MessageList/MessageSystem.js.map +1 -1
- package/lib/commonjs/components/MessageList/utils/getGroupStyles.js +3 -2
- package/lib/commonjs/components/MessageList/utils/getGroupStyles.js.map +1 -1
- package/lib/commonjs/components/index.js +11 -0
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/contexts/messageContext/MessageContext.js.map +1 -1
- package/lib/commonjs/contexts/messagesContext/MessagesContext.js.map +1 -1
- package/lib/commonjs/contexts/themeContext/utils/theme.js +3 -0
- package/lib/commonjs/contexts/themeContext/utils/theme.js.map +1 -1
- package/lib/commonjs/i18n/en.json +2 -1
- package/lib/commonjs/i18n/es.json +39 -38
- package/lib/commonjs/i18n/fr.json +39 -38
- package/lib/commonjs/i18n/he.json +39 -38
- package/lib/commonjs/i18n/hi.json +39 -38
- package/lib/commonjs/i18n/it.json +39 -38
- package/lib/commonjs/i18n/ja.json +39 -38
- package/lib/commonjs/i18n/ko.json +39 -38
- package/lib/commonjs/i18n/nl.json +39 -38
- package/lib/commonjs/i18n/pt-BR.json +39 -38
- package/lib/commonjs/i18n/ru.json +39 -38
- package/lib/commonjs/i18n/tr.json +39 -38
- package/lib/commonjs/utils/getDateString.js +31 -0
- package/lib/commonjs/utils/getDateString.js.map +1 -0
- package/lib/commonjs/utils/utils.js +5 -1
- package/lib/commonjs/utils/utils.js.map +1 -1
- package/lib/commonjs/version.json +1 -1
- package/lib/module/components/Channel/Channel.js +4 -2
- package/lib/module/components/Channel/Channel.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateMessagesContext.js +2 -2
- package/lib/module/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
- package/lib/module/components/ChannelPreview/hooks/useLatestMessagePreview.js +1 -1
- package/lib/module/components/ChannelPreview/hooks/useLatestMessagePreview.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js +6 -14
- package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
- package/lib/module/components/Message/Message.js +11 -0
- package/lib/module/components/Message/Message.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageContent.js +12 -27
- package/lib/module/components/Message/MessageSimple/MessageContent.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageDeleted.js +10 -12
- package/lib/module/components/Message/MessageSimple/MessageDeleted.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageEditedTimestamp.js +55 -0
- package/lib/module/components/Message/MessageSimple/MessageEditedTimestamp.js.map +1 -0
- package/lib/module/components/Message/MessageSimple/MessageFooter.js +94 -58
- package/lib/module/components/Message/MessageSimple/MessageFooter.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageSimple.js +6 -0
- package/lib/module/components/Message/MessageSimple/MessageSimple.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageTimestamp.js +48 -0
- package/lib/module/components/Message/MessageSimple/MessageTimestamp.js.map +1 -0
- package/lib/module/components/Message/hooks/useCreateMessageContext.js +5 -1
- package/lib/module/components/Message/hooks/useCreateMessageContext.js.map +1 -1
- package/lib/module/components/MessageList/InlineDateSeparator.js +6 -2
- package/lib/module/components/MessageList/InlineDateSeparator.js.map +1 -1
- package/lib/module/components/MessageList/MessageList.js +9 -6
- package/lib/module/components/MessageList/MessageList.js.map +1 -1
- package/lib/module/components/MessageList/MessageSystem.js +30 -27
- package/lib/module/components/MessageList/MessageSystem.js.map +1 -1
- package/lib/module/components/MessageList/utils/getGroupStyles.js +3 -2
- package/lib/module/components/MessageList/utils/getGroupStyles.js.map +1 -1
- package/lib/module/components/index.js +11 -0
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/contexts/messageContext/MessageContext.js.map +1 -1
- package/lib/module/contexts/messagesContext/MessagesContext.js.map +1 -1
- package/lib/module/contexts/themeContext/utils/theme.js +3 -0
- package/lib/module/contexts/themeContext/utils/theme.js.map +1 -1
- package/lib/module/i18n/en.json +2 -1
- package/lib/module/i18n/es.json +39 -38
- package/lib/module/i18n/fr.json +39 -38
- package/lib/module/i18n/he.json +39 -38
- package/lib/module/i18n/hi.json +39 -38
- package/lib/module/i18n/it.json +39 -38
- package/lib/module/i18n/ja.json +39 -38
- package/lib/module/i18n/ko.json +39 -38
- package/lib/module/i18n/nl.json +39 -38
- package/lib/module/i18n/pt-BR.json +39 -38
- package/lib/module/i18n/ru.json +39 -38
- package/lib/module/i18n/tr.json +39 -38
- package/lib/module/utils/getDateString.js +31 -0
- package/lib/module/utils/getDateString.js.map +1 -0
- package/lib/module/utils/utils.js +5 -1
- package/lib/module/utils/utils.js.map +1 -1
- package/lib/module/version.json +1 -1
- package/lib/typescript/components/Channel/Channel.d.ts +1 -1
- package/lib/typescript/components/Channel/Channel.d.ts.map +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateMessagesContext.d.ts +1 -1
- package/lib/typescript/components/ImageGallery/components/ImageGalleryHeader.d.ts.map +1 -1
- package/lib/typescript/components/Message/Message.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageSimple/MessageContent.d.ts +1 -1
- package/lib/typescript/components/Message/MessageSimple/MessageContent.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageSimple/MessageDeleted.d.ts +8 -8
- package/lib/typescript/components/Message/MessageSimple/MessageDeleted.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageSimple/MessageEditedTimestamp.d.ts +7 -0
- package/lib/typescript/components/Message/MessageSimple/MessageEditedTimestamp.d.ts.map +1 -0
- package/lib/typescript/components/Message/MessageSimple/MessageFooter.d.ts +1 -1
- package/lib/typescript/components/Message/MessageSimple/MessageFooter.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageSimple/MessageSimple.d.ts +1 -1
- package/lib/typescript/components/Message/MessageSimple/MessageSimple.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageSimple/MessageTimestamp.d.ts +22 -0
- package/lib/typescript/components/Message/MessageSimple/MessageTimestamp.d.ts.map +1 -0
- package/lib/typescript/components/Message/hooks/useCreateMessageContext.d.ts +1 -1
- package/lib/typescript/components/Message/hooks/useCreateMessageContext.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/DateHeader.d.ts +1 -1
- package/lib/typescript/components/MessageList/DateHeader.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/InlineDateSeparator.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/MessageList.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/MessageSystem.d.ts +0 -8
- package/lib/typescript/components/MessageList/MessageSystem.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/utils/getGroupStyles.d.ts.map +1 -1
- package/lib/typescript/components/index.d.ts +1 -0
- package/lib/typescript/components/index.d.ts.map +1 -1
- package/lib/typescript/contexts/channelContext/ChannelContext.d.ts +1 -1
- package/lib/typescript/contexts/channelContext/ChannelContext.d.ts.map +1 -1
- package/lib/typescript/contexts/messageContext/MessageContext.d.ts +5 -1
- package/lib/typescript/contexts/messageContext/MessageContext.d.ts.map +1 -1
- package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts +6 -5
- package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts.map +1 -1
- package/lib/typescript/contexts/themeContext/utils/theme.d.ts +3 -0
- package/lib/typescript/contexts/themeContext/utils/theme.d.ts.map +1 -1
- package/lib/typescript/i18n/en.json +2 -1
- package/lib/typescript/i18n/es.json +39 -38
- package/lib/typescript/i18n/fr.json +39 -38
- package/lib/typescript/i18n/he.json +39 -38
- package/lib/typescript/i18n/hi.json +39 -38
- package/lib/typescript/i18n/it.json +39 -38
- package/lib/typescript/i18n/ja.json +39 -38
- package/lib/typescript/i18n/ko.json +39 -38
- package/lib/typescript/i18n/nl.json +39 -38
- package/lib/typescript/i18n/pt-BR.json +39 -38
- package/lib/typescript/i18n/ru.json +39 -38
- package/lib/typescript/i18n/tr.json +39 -38
- package/lib/typescript/utils/Streami18n.d.ts +6 -0
- package/lib/typescript/utils/Streami18n.d.ts.map +1 -1
- package/lib/typescript/utils/getDateString.d.ts +30 -0
- package/lib/typescript/utils/getDateString.d.ts.map +1 -0
- package/lib/typescript/utils/utils.d.ts +6 -0
- package/lib/typescript/utils/utils.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/components/Channel/Channel.tsx +4 -3
- package/src/components/Channel/hooks/useCreateMessagesContext.ts +2 -2
- package/src/components/ChannelPreview/hooks/useLatestMessagePreview.ts +1 -1
- package/src/components/ImageGallery/components/ImageGalleryHeader.tsx +3 -31
- package/src/components/Message/Message.tsx +7 -0
- package/src/components/Message/MessageSimple/MessageContent.tsx +13 -33
- package/src/components/Message/MessageSimple/MessageDeleted.tsx +13 -31
- package/src/components/Message/MessageSimple/MessageEditedTimestamp.tsx +56 -0
- package/src/components/Message/MessageSimple/MessageFooter.tsx +104 -63
- package/src/components/Message/MessageSimple/MessageSimple.tsx +14 -2
- package/src/components/Message/MessageSimple/MessageTimestamp.tsx +64 -0
- package/src/components/Message/hooks/useCreateMessageContext.ts +5 -0
- package/src/components/MessageList/DateHeader.tsx +1 -1
- package/src/components/MessageList/InlineDateSeparator.tsx +8 -8
- package/src/components/MessageList/MessageList.tsx +9 -9
- package/src/components/MessageList/MessageSystem.tsx +35 -43
- package/src/components/MessageList/utils/getGroupStyles.ts +7 -4
- package/src/components/Thread/__tests__/__snapshots__/Thread.test.js.snap +20 -12
- package/src/components/index.ts +1 -0
- package/src/contexts/channelContext/ChannelContext.tsx +1 -1
- package/src/contexts/messageContext/MessageContext.tsx +4 -0
- package/src/contexts/messagesContext/MessagesContext.tsx +6 -5
- package/src/contexts/themeContext/utils/theme.ts +6 -0
- package/src/i18n/en.json +2 -1
- package/src/i18n/es.json +39 -38
- package/src/i18n/fr.json +39 -38
- package/src/i18n/he.json +39 -38
- package/src/i18n/hi.json +39 -38
- package/src/i18n/it.json +39 -38
- package/src/i18n/ja.json +39 -38
- package/src/i18n/ko.json +39 -38
- package/src/i18n/nl.json +39 -38
- package/src/i18n/pt-BR.json +39 -38
- package/src/i18n/ru.json +39 -38
- package/src/i18n/tr.json +39 -38
- package/src/utils/getDateString.ts +67 -0
- package/src/utils/utils.ts +11 -0
- package/src/version.json +1 -1
package/src/i18n/pt-BR.json
CHANGED
|
@@ -1,82 +1,83 @@
|
|
|
1
1
|
{
|
|
2
2
|
"1 Reply": "",
|
|
3
|
-
"1 Thread Reply": "
|
|
3
|
+
"1 Thread Reply": "",
|
|
4
4
|
"Allow access to your Gallery": "",
|
|
5
5
|
"Allow camera access in device settings": "",
|
|
6
6
|
"Also send to channel": "",
|
|
7
|
-
"Are you sure you want to permanently delete this message?": "",
|
|
8
|
-
"Are you sure?": "",
|
|
9
|
-
"Block User": "",
|
|
7
|
+
"Are you sure you want to permanently delete this message?": "Tem certeza de que deseja excluir esta mensagem permanentemente?",
|
|
8
|
+
"Are you sure?": "Tem certeza?",
|
|
9
|
+
"Block User": "Bloquear Usuário",
|
|
10
10
|
"Cancel": "",
|
|
11
|
-
"Cannot Flag Message": "",
|
|
12
|
-
"Consider how your comment might make others feel and be sure to follow our Community Guidelines": "",
|
|
13
|
-
"Copy Message": "",
|
|
14
|
-
"Delete": "",
|
|
15
|
-
"Delete Message": "",
|
|
11
|
+
"Cannot Flag Message": "Não é possível reportar a mensagem",
|
|
12
|
+
"Consider how your comment might make others feel and be sure to follow our Community Guidelines": "Considere como seu comentário pode fazer os outros se sentirem e certifique-se de seguir nossas Diretrizes da Comunidade",
|
|
13
|
+
"Copy Message": "Copiar Mensagem",
|
|
14
|
+
"Delete": "Excluir",
|
|
15
|
+
"Delete Message": "Excluir Mensagem",
|
|
16
16
|
"Device camera is used to take photos or videos.": "",
|
|
17
|
-
"Do you want to send a copy of this message to a moderator for further investigation?": "",
|
|
18
|
-
"Edit Message": "",
|
|
17
|
+
"Do you want to send a copy of this message to a moderator for further investigation?": "Deseja enviar uma cópia desta mensagem para um moderador para investigação adicional?",
|
|
18
|
+
"Edit Message": "Editar Mensagem",
|
|
19
|
+
"Edited": "",
|
|
19
20
|
"Editing Message": "",
|
|
20
|
-
"Emoji matching": "",
|
|
21
|
+
"Emoji matching": "Correspondência de Emoji",
|
|
21
22
|
"Empty message...": "",
|
|
22
23
|
"Error loading": "",
|
|
23
24
|
"Error loading channel list...": "",
|
|
24
|
-
"Error loading messages for this channel...": "",
|
|
25
|
+
"Error loading messages for this channel...": "Erro ao carregar mensagens para este canal...",
|
|
25
26
|
"Error while loading, please reload/refresh": "",
|
|
26
|
-
"File type not supported": "
|
|
27
|
-
"Flag": "",
|
|
28
|
-
"Flag Message": "",
|
|
29
|
-
"Flag action failed either due to a network issue or the message is already flagged": "",
|
|
27
|
+
"File type not supported": "",
|
|
28
|
+
"Flag": "Reportar",
|
|
29
|
+
"Flag Message": "Reportar Mensagem",
|
|
30
|
+
"Flag action failed either due to a network issue or the message is already flagged": "A ação para reportar a mensagem falhou devido a um problema de rede ou a mensagem já foi reportada.",
|
|
30
31
|
"Hold to start recording.": "",
|
|
31
32
|
"How about sending your first message to a friend?": "",
|
|
32
|
-
"Instant Commands": "",
|
|
33
|
+
"Instant Commands": "Comandos Instantâneos",
|
|
33
34
|
"Let's start chatting!": "",
|
|
34
35
|
"Links are disabled": "",
|
|
35
36
|
"Loading channels...": "",
|
|
36
37
|
"Loading messages...": "",
|
|
37
38
|
"Loading...": "",
|
|
38
39
|
"Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
|
|
39
|
-
"Message Reactions": "",
|
|
40
|
+
"Message Reactions": "Reações à Mensagem",
|
|
40
41
|
"Message deleted": "Mensagem excluída",
|
|
41
|
-
"Message flagged": "",
|
|
42
|
-
"Mute User": "",
|
|
42
|
+
"Message flagged": "Mensagem sinalizada",
|
|
43
|
+
"Mute User": "Silenciar Usuário",
|
|
43
44
|
"No chats here yet…": "",
|
|
44
|
-
"Not supported": "",
|
|
45
|
+
"Not supported": "Não suportado",
|
|
45
46
|
"Nothing yet...": "",
|
|
46
|
-
"Ok": "",
|
|
47
|
-
"Only visible to you": "
|
|
47
|
+
"Ok": "Ok",
|
|
48
|
+
"Only visible to you": "",
|
|
48
49
|
"Open Settings": "",
|
|
49
50
|
"Photo": "",
|
|
50
51
|
"Photos and Videos": "",
|
|
51
|
-
"Pin to Conversation": "",
|
|
52
|
+
"Pin to Conversation": "Fixar na Conversa",
|
|
52
53
|
"Pinned by": "",
|
|
53
54
|
"Please allow Audio permissions in settings.": "",
|
|
54
55
|
"Please enable access to your photos and videos so you can share them.": "",
|
|
55
56
|
"Please select a channel first": "",
|
|
56
|
-
"Reconnecting...": "",
|
|
57
|
-
"Reply": "",
|
|
57
|
+
"Reconnecting...": "Reconectando...",
|
|
58
|
+
"Reply": "Responder",
|
|
58
59
|
"Reply to Message": "",
|
|
59
|
-
"Resend": "",
|
|
60
|
+
"Resend": "Reenviar",
|
|
60
61
|
"Search GIFs": "",
|
|
61
62
|
"Select More Photos": "",
|
|
62
|
-
"Send Anyway": "",
|
|
63
|
+
"Send Anyway": "Enviar de qualquer maneira",
|
|
63
64
|
"Send a message": "",
|
|
64
65
|
"Sending links is not allowed in this conversation": "",
|
|
65
66
|
"Slow mode ON": "",
|
|
66
|
-
"The message has been reported to a moderator.": "",
|
|
67
|
-
"Thread Reply": "",
|
|
68
|
-
"Unblock User": "",
|
|
67
|
+
"The message has been reported to a moderator.": "A mensagem foi relatada a um moderador.",
|
|
68
|
+
"Thread Reply": "Respostas de Tópico",
|
|
69
|
+
"Unblock User": "Desbloquear Usuário",
|
|
69
70
|
"Unknown User": "",
|
|
70
|
-
"Unmute User": "",
|
|
71
|
-
"Unpin from Conversation": "",
|
|
71
|
+
"Unmute User": "Remover usuário do modo silencioso",
|
|
72
|
+
"Unpin from Conversation": "Desmarcar como fixado na conversa",
|
|
72
73
|
"Unread Messages": "Mensagens não lidas",
|
|
73
74
|
"Video": "",
|
|
74
|
-
"You": "",
|
|
75
|
+
"You": "Você",
|
|
75
76
|
"You can't send messages in this channel": "",
|
|
76
|
-
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
|
|
77
|
+
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} e mais {{ nonSelfUserLength }} pessoa(s) estão digitando",
|
|
77
78
|
"{{ index }} of {{ photoLength }}": "",
|
|
78
79
|
"{{ replyCount }} Replies": "",
|
|
79
|
-
"{{ replyCount }} Thread Replies": "
|
|
80
|
-
"{{ user }} is typing": "",
|
|
80
|
+
"{{ replyCount }} Thread Replies": "",
|
|
81
|
+
"{{ user }} is typing": "{{ user }} está digitando",
|
|
81
82
|
"🏙 Attachment...": ""
|
|
82
83
|
}
|
package/src/i18n/ru.json
CHANGED
|
@@ -1,82 +1,83 @@
|
|
|
1
1
|
{
|
|
2
2
|
"1 Reply": "",
|
|
3
|
-
"1 Thread Reply": "
|
|
3
|
+
"1 Thread Reply": "",
|
|
4
4
|
"Allow access to your Gallery": "",
|
|
5
5
|
"Allow camera access in device settings": "",
|
|
6
6
|
"Also send to channel": "",
|
|
7
|
-
"Are you sure you want to permanently delete this message?": "",
|
|
8
|
-
"Are you sure?": "",
|
|
9
|
-
"Block User": "",
|
|
7
|
+
"Are you sure you want to permanently delete this message?": "Вы действительно хотите удалить это сообщение без возможности восстановления?",
|
|
8
|
+
"Are you sure?": "Вы уверены?",
|
|
9
|
+
"Block User": "Заблокировать пользователя",
|
|
10
10
|
"Cancel": "",
|
|
11
|
-
"Cannot Flag Message": "",
|
|
12
|
-
"Consider how your comment might make others feel and be sure to follow our Community Guidelines": "",
|
|
13
|
-
"Copy Message": "",
|
|
14
|
-
"Delete": "",
|
|
15
|
-
"Delete Message": "",
|
|
11
|
+
"Cannot Flag Message": "Невозможно пожаловаться на сообщение",
|
|
12
|
+
"Consider how your comment might make others feel and be sure to follow our Community Guidelines": "Обдумайте, как ваш комментарий может повлиять на других, и убедитесь, что вы следуете нашим правилам сообщества",
|
|
13
|
+
"Copy Message": "Копировать сообщение",
|
|
14
|
+
"Delete": "удалять",
|
|
15
|
+
"Delete Message": "Удалить сообщение",
|
|
16
16
|
"Device camera is used to take photos or videos.": "",
|
|
17
|
-
"Do you want to send a copy of this message to a moderator for further investigation?": "",
|
|
18
|
-
"Edit Message": "",
|
|
17
|
+
"Do you want to send a copy of this message to a moderator for further investigation?": "Вы хотите отправить копию этого сообщения модератору для дальнейшего изучения?",
|
|
18
|
+
"Edit Message": "Редактировать сообщение",
|
|
19
|
+
"Edited": "",
|
|
19
20
|
"Editing Message": "",
|
|
20
|
-
"Emoji matching": "",
|
|
21
|
+
"Emoji matching": "Соответствие эмодзи",
|
|
21
22
|
"Empty message...": "",
|
|
22
23
|
"Error loading": "",
|
|
23
24
|
"Error loading channel list...": "",
|
|
24
|
-
"Error loading messages for this channel...": "",
|
|
25
|
+
"Error loading messages for this channel...": "Ошибка загрузки сообщений для этого канала...",
|
|
25
26
|
"Error while loading, please reload/refresh": "",
|
|
26
|
-
"File type not supported": "
|
|
27
|
-
"Flag": "",
|
|
28
|
-
"Flag Message": "",
|
|
29
|
-
"Flag action failed either due to a network issue or the message is already flagged": "",
|
|
27
|
+
"File type not supported": "",
|
|
28
|
+
"Flag": "Пометить",
|
|
29
|
+
"Flag Message": "Пометить сообщение",
|
|
30
|
+
"Flag action failed either due to a network issue or the message is already flagged": "Не удалось отправить жалобу. Возможные причины: проблема с подключением к интернету или ваша жалоба уже была принята.",
|
|
30
31
|
"Hold to start recording.": "",
|
|
31
32
|
"How about sending your first message to a friend?": "",
|
|
32
|
-
"Instant Commands": "",
|
|
33
|
+
"Instant Commands": "Мгновенные Команды",
|
|
33
34
|
"Let's start chatting!": "",
|
|
34
35
|
"Links are disabled": "",
|
|
35
36
|
"Loading channels...": "",
|
|
36
37
|
"Loading messages...": "",
|
|
37
38
|
"Loading...": "",
|
|
38
39
|
"Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
|
|
39
|
-
"Message Reactions": "",
|
|
40
|
+
"Message Reactions": "Сообщения Реакции",
|
|
40
41
|
"Message deleted": "Сообщение удалено",
|
|
41
|
-
"Message flagged": "",
|
|
42
|
-
"Mute User": "",
|
|
42
|
+
"Message flagged": "Сообщение отмечено",
|
|
43
|
+
"Mute User": "Отключить пользователя",
|
|
43
44
|
"No chats here yet…": "",
|
|
44
|
-
"Not supported": "",
|
|
45
|
+
"Not supported": "не поддерживается",
|
|
45
46
|
"Nothing yet...": "",
|
|
46
|
-
"Ok": "",
|
|
47
|
-
"Only visible to you": "
|
|
47
|
+
"Ok": "Oк",
|
|
48
|
+
"Only visible to you": "",
|
|
48
49
|
"Open Settings": "",
|
|
49
50
|
"Photo": "",
|
|
50
51
|
"Photos and Videos": "",
|
|
51
|
-
"Pin to Conversation": "",
|
|
52
|
+
"Pin to Conversation": "Закрепить к беседе",
|
|
52
53
|
"Pinned by": "",
|
|
53
54
|
"Please allow Audio permissions in settings.": "",
|
|
54
55
|
"Please enable access to your photos and videos so you can share them.": "",
|
|
55
56
|
"Please select a channel first": "",
|
|
56
|
-
"Reconnecting...": "",
|
|
57
|
-
"Reply": "",
|
|
57
|
+
"Reconnecting...": "Переподключение...",
|
|
58
|
+
"Reply": "Ответить",
|
|
58
59
|
"Reply to Message": "",
|
|
59
|
-
"Resend": "",
|
|
60
|
+
"Resend": "Отправить",
|
|
60
61
|
"Search GIFs": "",
|
|
61
62
|
"Select More Photos": "",
|
|
62
|
-
"Send Anyway": "",
|
|
63
|
+
"Send Anyway": "Всё равно отправить",
|
|
63
64
|
"Send a message": "",
|
|
64
65
|
"Sending links is not allowed in this conversation": "",
|
|
65
66
|
"Slow mode ON": "",
|
|
66
|
-
"The message has been reported to a moderator.": "",
|
|
67
|
-
"Thread Reply": "",
|
|
68
|
-
"Unblock User": "",
|
|
67
|
+
"The message has been reported to a moderator.": "Сообщение отправлено модератору.",
|
|
68
|
+
"Thread Reply": "Тема Ответить",
|
|
69
|
+
"Unblock User": "Разблокировать пользователя",
|
|
69
70
|
"Unknown User": "",
|
|
70
|
-
"Unmute User": "",
|
|
71
|
-
"Unpin from Conversation": "",
|
|
71
|
+
"Unmute User": "Включить микрофон",
|
|
72
|
+
"Unpin from Conversation": "Открепить от беседы",
|
|
72
73
|
"Unread Messages": "Непрочитанные Сообщения",
|
|
73
74
|
"Video": "",
|
|
74
|
-
"You": "",
|
|
75
|
+
"You": "Вы",
|
|
75
76
|
"You can't send messages in this channel": "",
|
|
76
|
-
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
|
|
77
|
+
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} и еще {{ nonSelfUserLength }} пишут",
|
|
77
78
|
"{{ index }} of {{ photoLength }}": "",
|
|
78
79
|
"{{ replyCount }} Replies": "",
|
|
79
|
-
"{{ replyCount }} Thread Replies": "
|
|
80
|
-
"{{ user }} is typing": "",
|
|
80
|
+
"{{ replyCount }} Thread Replies": "",
|
|
81
|
+
"{{ user }} is typing": "{{ user }} пишет",
|
|
81
82
|
"🏙 Attachment...": ""
|
|
82
83
|
}
|
package/src/i18n/tr.json
CHANGED
|
@@ -1,82 +1,83 @@
|
|
|
1
1
|
{
|
|
2
2
|
"1 Reply": "",
|
|
3
|
-
"1 Thread Reply": "
|
|
3
|
+
"1 Thread Reply": "",
|
|
4
4
|
"Allow access to your Gallery": "",
|
|
5
5
|
"Allow camera access in device settings": "",
|
|
6
6
|
"Also send to channel": "",
|
|
7
|
-
"Are you sure you want to permanently delete this message?": "",
|
|
8
|
-
"Are you sure?": "",
|
|
9
|
-
"Block User": "",
|
|
7
|
+
"Are you sure you want to permanently delete this message?": "Bu mesajı kalıcı olarak silmek istediğinizden emin misiniz?",
|
|
8
|
+
"Are you sure?": "Emin misiniz?",
|
|
9
|
+
"Block User": "Kullanıcıyı engelle",
|
|
10
10
|
"Cancel": "",
|
|
11
|
-
"Cannot Flag Message": "",
|
|
12
|
-
"Consider how your comment might make others feel and be sure to follow our Community Guidelines": "",
|
|
13
|
-
"Copy Message": "",
|
|
14
|
-
"Delete": "",
|
|
15
|
-
"Delete Message": "",
|
|
11
|
+
"Cannot Flag Message": "Raporlama Başarısız",
|
|
12
|
+
"Consider how your comment might make others feel and be sure to follow our Community Guidelines": "Yorumunuzun diğerlerini nasıl hissettirebileceğini düşünün ve topluluk kurallarımızı takip ettiğinizden emin olun",
|
|
13
|
+
"Copy Message": "Mesajı Kopyala",
|
|
14
|
+
"Delete": "Sil",
|
|
15
|
+
"Delete Message": "Mesajı Sil",
|
|
16
16
|
"Device camera is used to take photos or videos.": "",
|
|
17
|
-
"Do you want to send a copy of this message to a moderator for further investigation?": "",
|
|
18
|
-
"Edit Message": "",
|
|
17
|
+
"Do you want to send a copy of this message to a moderator for further investigation?": "Detaylı inceleme için bu mesajın kopyasını moderatöre göndermek istiyor musunuz?",
|
|
18
|
+
"Edit Message": "Mesajı Düzenle",
|
|
19
|
+
"Edited": "",
|
|
19
20
|
"Editing Message": "",
|
|
20
|
-
"Emoji matching": "",
|
|
21
|
+
"Emoji matching": "Emoji eşleştirme",
|
|
21
22
|
"Empty message...": "",
|
|
22
23
|
"Error loading": "",
|
|
23
24
|
"Error loading channel list...": "",
|
|
24
|
-
"Error loading messages for this channel...": "",
|
|
25
|
+
"Error loading messages for this channel...": "Bu kanal için mesajlar yüklenirken hata oluştu...",
|
|
25
26
|
"Error while loading, please reload/refresh": "",
|
|
26
|
-
"File type not supported": "
|
|
27
|
-
"Flag": "",
|
|
28
|
-
"Flag Message": "",
|
|
29
|
-
"Flag action failed either due to a network issue or the message is already flagged": "",
|
|
27
|
+
"File type not supported": "",
|
|
28
|
+
"Flag": "Raporla",
|
|
29
|
+
"Flag Message": "Mesajı Raporla",
|
|
30
|
+
"Flag action failed either due to a network issue or the message is already flagged": "Mesajın daha önce raporlanmış olması veya bir ağ bağlantısı sorunu nedeniyle raporlama işlemi başarısız oldu.",
|
|
30
31
|
"Hold to start recording.": "",
|
|
31
32
|
"How about sending your first message to a friend?": "",
|
|
32
|
-
"Instant Commands": "",
|
|
33
|
+
"Instant Commands": "Anlık Komutlar",
|
|
33
34
|
"Let's start chatting!": "",
|
|
34
35
|
"Links are disabled": "",
|
|
35
36
|
"Loading channels...": "",
|
|
36
37
|
"Loading messages...": "",
|
|
37
38
|
"Loading...": "",
|
|
38
39
|
"Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
|
|
39
|
-
"Message Reactions": "",
|
|
40
|
+
"Message Reactions": "Mesaj Tepkileri",
|
|
40
41
|
"Message deleted": "Mesaj silindi",
|
|
41
|
-
"Message flagged": "",
|
|
42
|
-
"Mute User": "",
|
|
42
|
+
"Message flagged": "Mesaj işaretlendi",
|
|
43
|
+
"Mute User": "Kullanıcıyı sessize al",
|
|
43
44
|
"No chats here yet…": "",
|
|
44
|
-
"Not supported": "",
|
|
45
|
+
"Not supported": "Desteklenmiyor",
|
|
45
46
|
"Nothing yet...": "",
|
|
46
|
-
"Ok": "",
|
|
47
|
-
"Only visible to you": "
|
|
47
|
+
"Ok": "Tamam",
|
|
48
|
+
"Only visible to you": "",
|
|
48
49
|
"Open Settings": "",
|
|
49
50
|
"Photo": "",
|
|
50
51
|
"Photos and Videos": "",
|
|
51
|
-
"Pin to Conversation": "",
|
|
52
|
+
"Pin to Conversation": "Konuşmaya sabitle",
|
|
52
53
|
"Pinned by": "",
|
|
53
54
|
"Please allow Audio permissions in settings.": "",
|
|
54
55
|
"Please enable access to your photos and videos so you can share them.": "",
|
|
55
56
|
"Please select a channel first": "",
|
|
56
|
-
"Reconnecting...": "",
|
|
57
|
-
"Reply": "",
|
|
57
|
+
"Reconnecting...": "Yeniden Bağlanılıyor...",
|
|
58
|
+
"Reply": "Yanıtla",
|
|
58
59
|
"Reply to Message": "",
|
|
59
|
-
"Resend": "",
|
|
60
|
+
"Resend": "Yeniden gönder",
|
|
60
61
|
"Search GIFs": "",
|
|
61
62
|
"Select More Photos": "",
|
|
62
|
-
"Send Anyway": "",
|
|
63
|
+
"Send Anyway": "Yine de Gönder",
|
|
63
64
|
"Send a message": "",
|
|
64
65
|
"Sending links is not allowed in this conversation": "",
|
|
65
66
|
"Slow mode ON": "",
|
|
66
|
-
"The message has been reported to a moderator.": "",
|
|
67
|
-
"Thread Reply": "",
|
|
68
|
-
"Unblock User": "",
|
|
67
|
+
"The message has been reported to a moderator.": "Mesaj moderatöre bildirildi.",
|
|
68
|
+
"Thread Reply": "Konu Yanıtı",
|
|
69
|
+
"Unblock User": "Kullanıcının engelini kaldır",
|
|
69
70
|
"Unknown User": "",
|
|
70
|
-
"Unmute User": "",
|
|
71
|
-
"Unpin from Conversation": "",
|
|
71
|
+
"Unmute User": "Kullanıcının sesini aç",
|
|
72
|
+
"Unpin from Conversation": "Sabitlemeyi kaldır",
|
|
72
73
|
"Unread Messages": "Okunmamış Mesajlar",
|
|
73
74
|
"Video": "",
|
|
74
|
-
"You": "",
|
|
75
|
+
"You": "Sen",
|
|
75
76
|
"You can't send messages in this channel": "",
|
|
76
|
-
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
|
|
77
|
+
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} ve {{ nonSelfUserLength }} kişi daha yazıyor",
|
|
77
78
|
"{{ index }} of {{ photoLength }}": "",
|
|
78
79
|
"{{ replyCount }} Replies": "",
|
|
79
|
-
"{{ replyCount }} Thread Replies": "
|
|
80
|
-
"{{ user }} is typing": "",
|
|
80
|
+
"{{ replyCount }} Thread Replies": "",
|
|
81
|
+
"{{ user }} is typing": "{{ user }} yazıyor",
|
|
81
82
|
"🏙 Attachment...": ""
|
|
82
83
|
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import {
|
|
2
|
+
isDayOrMoment,
|
|
3
|
+
TDateTimeParser,
|
|
4
|
+
TDateTimeParserInput,
|
|
5
|
+
} from '../contexts/translationContext/TranslationContext';
|
|
6
|
+
|
|
7
|
+
interface DateFormatterOptions {
|
|
8
|
+
/**
|
|
9
|
+
* Whether to show the time in Calendar time format. Calendar time displays time relative to a today's date.
|
|
10
|
+
*/
|
|
11
|
+
calendar?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* The timestamp to be formatted.
|
|
14
|
+
*/
|
|
15
|
+
date?: string | Date;
|
|
16
|
+
/**
|
|
17
|
+
* The format in which the date should be displayed.
|
|
18
|
+
*/
|
|
19
|
+
format?: string;
|
|
20
|
+
/**
|
|
21
|
+
* A function to format the date.
|
|
22
|
+
*/
|
|
23
|
+
formatDate?: (date: TDateTimeParserInput) => string;
|
|
24
|
+
/**
|
|
25
|
+
* The datetime parsing function.
|
|
26
|
+
*/
|
|
27
|
+
tDateTimeParser?: TDateTimeParser;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export const noParsingFunctionWarning =
|
|
31
|
+
'MessageTimestamp was called but there is no datetime parsing function available';
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Utility funcyion to format the date string.
|
|
35
|
+
*/
|
|
36
|
+
export function getDateString({
|
|
37
|
+
calendar,
|
|
38
|
+
date,
|
|
39
|
+
format,
|
|
40
|
+
formatDate,
|
|
41
|
+
tDateTimeParser,
|
|
42
|
+
}: DateFormatterOptions): string | number | null {
|
|
43
|
+
if (!date || (typeof date === 'string' && !Date.parse(date))) {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
if (typeof formatDate === 'function') {
|
|
48
|
+
return formatDate(new Date(date));
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
if (!tDateTimeParser) {
|
|
52
|
+
console.log(noParsingFunctionWarning);
|
|
53
|
+
return null;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
const parsedTime = tDateTimeParser(date);
|
|
57
|
+
|
|
58
|
+
if (isDayOrMoment(parsedTime)) {
|
|
59
|
+
/**
|
|
60
|
+
* parsedTime.calendar is guaranteed on the type but is only
|
|
61
|
+
* available when a user calls dayjs.extend(calendar)
|
|
62
|
+
*/
|
|
63
|
+
return calendar && parsedTime.calendar ? parsedTime.calendar() : parsedTime.format(format);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
return new Date(date).toDateString();
|
|
67
|
+
}
|
package/src/utils/utils.ts
CHANGED
|
@@ -113,6 +113,17 @@ export const isBouncedMessage = <
|
|
|
113
113
|
message: MessageType<StreamChatGenerics>,
|
|
114
114
|
) => message.type === 'error' && message.moderation_details !== undefined;
|
|
115
115
|
|
|
116
|
+
/**
|
|
117
|
+
* Utility to check if the message is a edited message.
|
|
118
|
+
* @param message
|
|
119
|
+
* @returns boolean
|
|
120
|
+
*/
|
|
121
|
+
export const isEditedMessage = <
|
|
122
|
+
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
123
|
+
>(
|
|
124
|
+
message: MessageType<StreamChatGenerics>,
|
|
125
|
+
) => !!message.message_text_updated_at;
|
|
126
|
+
|
|
116
127
|
const defaultAutoCompleteSuggestionsLimit = 10;
|
|
117
128
|
const defaultMentionAllAppUsersQuery = {
|
|
118
129
|
filters: {},
|
package/src/version.json
CHANGED