stream-chat-react-native-core 5.27.0-beta.10 → 5.27.0-beta.12
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/AttachmentPicker/AttachmentPicker.js +1 -1
- package/lib/commonjs/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
- package/lib/commonjs/components/Chat/hooks/handleEventToSyncDB.js +100 -37
- package/lib/commonjs/components/Chat/hooks/handleEventToSyncDB.js.map +1 -1
- package/lib/commonjs/components/Chat/hooks/useSyncDatabase.js +3 -1
- package/lib/commonjs/components/Chat/hooks/useSyncDatabase.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/ImageGallery.js +39 -21
- package/lib/commonjs/components/ImageGallery/ImageGallery.js.map +1 -1
- package/lib/commonjs/i18n/es.json +22 -22
- package/lib/commonjs/i18n/fr.json +22 -22
- package/lib/commonjs/i18n/he.json +22 -22
- package/lib/commonjs/i18n/hi.json +22 -22
- package/lib/commonjs/i18n/it.json +22 -22
- package/lib/commonjs/i18n/ja.json +22 -22
- package/lib/commonjs/i18n/ko.json +22 -22
- package/lib/commonjs/i18n/nl.json +22 -22
- package/lib/commonjs/i18n/pt-BR.json +22 -22
- package/lib/commonjs/i18n/ru.json +22 -22
- package/lib/commonjs/i18n/tr.json +22 -22
- package/lib/commonjs/store/apis/upsertChannelDataFromChannel.js +21 -0
- package/lib/commonjs/store/apis/upsertChannelDataFromChannel.js.map +1 -0
- package/lib/commonjs/store/mappers/mapChannelToStorable.js +63 -0
- package/lib/commonjs/store/mappers/mapChannelToStorable.js.map +1 -0
- package/lib/commonjs/utils/DBSyncManager.js +73 -68
- package/lib/commonjs/utils/DBSyncManager.js.map +1 -1
- package/lib/commonjs/version.json +1 -1
- package/lib/module/components/AttachmentPicker/AttachmentPicker.js +1 -1
- package/lib/module/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
- package/lib/module/components/Chat/hooks/handleEventToSyncDB.js +100 -37
- package/lib/module/components/Chat/hooks/handleEventToSyncDB.js.map +1 -1
- package/lib/module/components/Chat/hooks/useSyncDatabase.js +3 -1
- package/lib/module/components/Chat/hooks/useSyncDatabase.js.map +1 -1
- package/lib/module/components/ImageGallery/ImageGallery.js +39 -21
- package/lib/module/components/ImageGallery/ImageGallery.js.map +1 -1
- package/lib/module/i18n/es.json +22 -22
- package/lib/module/i18n/fr.json +22 -22
- package/lib/module/i18n/he.json +22 -22
- package/lib/module/i18n/hi.json +22 -22
- package/lib/module/i18n/it.json +22 -22
- package/lib/module/i18n/ja.json +22 -22
- package/lib/module/i18n/ko.json +22 -22
- package/lib/module/i18n/nl.json +22 -22
- package/lib/module/i18n/pt-BR.json +22 -22
- package/lib/module/i18n/ru.json +22 -22
- package/lib/module/i18n/tr.json +22 -22
- package/lib/module/store/apis/upsertChannelDataFromChannel.js +21 -0
- package/lib/module/store/apis/upsertChannelDataFromChannel.js.map +1 -0
- package/lib/module/store/mappers/mapChannelToStorable.js +63 -0
- package/lib/module/store/mappers/mapChannelToStorable.js.map +1 -0
- package/lib/module/utils/DBSyncManager.js +73 -68
- package/lib/module/utils/DBSyncManager.js.map +1 -1
- package/lib/module/version.json +1 -1
- package/lib/typescript/components/Chat/hooks/handleEventToSyncDB.d.ts +4 -2
- package/lib/typescript/i18n/es.json +22 -22
- package/lib/typescript/i18n/fr.json +22 -22
- package/lib/typescript/i18n/he.json +22 -22
- package/lib/typescript/i18n/hi.json +22 -22
- package/lib/typescript/i18n/it.json +22 -22
- package/lib/typescript/i18n/ja.json +22 -22
- package/lib/typescript/i18n/ko.json +22 -22
- package/lib/typescript/i18n/nl.json +22 -22
- package/lib/typescript/i18n/pt-BR.json +22 -22
- package/lib/typescript/i18n/ru.json +22 -22
- package/lib/typescript/i18n/tr.json +22 -22
- package/lib/typescript/store/apis/upsertChannelDataFromChannel.d.ts +6 -0
- package/lib/typescript/store/mappers/mapChannelToStorable.d.ts +4 -0
- package/lib/typescript/utils/DBSyncManager.d.ts +1 -1
- package/package.json +1 -1
- package/src/components/AttachmentPicker/AttachmentPicker.tsx +1 -1
- package/src/components/Chat/hooks/handleEventToSyncDB.ts +132 -46
- package/src/components/Chat/hooks/useSyncDatabase.ts +1 -1
- package/src/components/ImageGallery/ImageGallery.tsx +25 -2
- package/src/i18n/es.json +22 -22
- package/src/i18n/fr.json +22 -22
- package/src/i18n/he.json +22 -22
- package/src/i18n/hi.json +22 -22
- package/src/i18n/it.json +22 -22
- package/src/i18n/ja.json +22 -22
- package/src/i18n/ko.json +22 -22
- package/src/i18n/nl.json +22 -22
- package/src/i18n/pt-BR.json +22 -22
- package/src/i18n/ru.json +22 -22
- package/src/i18n/tr.json +22 -22
- package/src/store/apis/upsertChannelDataFromChannel.ts +25 -0
- package/src/store/mappers/mapChannelToStorable.ts +68 -0
- package/src/utils/DBSyncManager.ts +7 -3
- package/src/version.json +1 -1
package/src/i18n/nl.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"1 Reply": "",
|
|
2
|
+
"1 Reply": "1 Antwoord",
|
|
3
3
|
"1 Thread Reply": "",
|
|
4
4
|
"Allow access to your Gallery": "",
|
|
5
5
|
"Allow camera access in device settings": "",
|
|
6
|
-
"Also send to channel": "
|
|
6
|
+
"Also send to channel": "",
|
|
7
7
|
"Are you sure you want to permanently delete this message?": "Weet u zeker dat u dit bericht definitief wilt verwijderen?",
|
|
8
8
|
"Are you sure?": "",
|
|
9
9
|
"Block User": "Blokkeer Gebruiker",
|
|
@@ -18,29 +18,29 @@
|
|
|
18
18
|
"Edit Message": "Pas bericht aan",
|
|
19
19
|
"Editing Message": "",
|
|
20
20
|
"Emoji matching": "",
|
|
21
|
-
"Empty message...": "",
|
|
22
|
-
"Error loading": "
|
|
23
|
-
"Error loading channel list...": "",
|
|
21
|
+
"Empty message...": "Leeg bericht...",
|
|
22
|
+
"Error loading": "",
|
|
23
|
+
"Error loading channel list...": "Probleem bij het laden van de kanalen...",
|
|
24
24
|
"Error loading messages for this channel...": "Probleem bij het laden van de berichten in dit kanaal...",
|
|
25
|
-
"Error while loading, please reload/refresh": "",
|
|
25
|
+
"Error while loading, please reload/refresh": "Probleem bij het laden, probeer opnieuw",
|
|
26
26
|
"File type not supported": "",
|
|
27
27
|
"Flag": "Markeer",
|
|
28
28
|
"Flag Message": "Markeer bericht",
|
|
29
29
|
"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",
|
|
30
|
-
"How about sending your first message to a friend?": "",
|
|
30
|
+
"How about sending your first message to a friend?": "Wat dacht je ervan om je eerste bericht naar een vriend te sturen?",
|
|
31
31
|
"Instant Commands": "",
|
|
32
|
-
"Let's start chatting!": "",
|
|
33
|
-
"Links are disabled": "",
|
|
34
|
-
"Loading channels...": "",
|
|
35
|
-
"Loading messages...": "",
|
|
36
|
-
"Loading...": "",
|
|
37
|
-
"Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
|
|
32
|
+
"Let's start chatting!": "Laten we beginnen met chatten!",
|
|
33
|
+
"Links are disabled": "Het versturen van links staat uit",
|
|
34
|
+
"Loading channels...": "Kanalen aan het laden...",
|
|
35
|
+
"Loading messages...": "Berichten aan het laden...",
|
|
36
|
+
"Loading...": "Aan het laden...",
|
|
37
|
+
"Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "Maximale uploadlimiet voor bestandsgrootte bereikt. Upload een bestand van minder dan {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.",
|
|
38
38
|
"Message Reactions": "Bericht Reacties",
|
|
39
39
|
"Message deleted": "Bericht verwijderd",
|
|
40
40
|
"Message flagged": "Bericht gemarkeerd",
|
|
41
41
|
"Mute User": "Gebruiker dempen",
|
|
42
42
|
"Not supported": "",
|
|
43
|
-
"Nothing yet...": "",
|
|
43
|
+
"Nothing yet...": "Nog niets...",
|
|
44
44
|
"Ok": "Oké",
|
|
45
45
|
"Only visible to you": "",
|
|
46
46
|
"Open Settings": "",
|
|
@@ -54,26 +54,26 @@
|
|
|
54
54
|
"Reply": "Antwoord",
|
|
55
55
|
"Reply to Message": "",
|
|
56
56
|
"Resend": "Opnieuw versturen",
|
|
57
|
-
"Search GIFs": "",
|
|
57
|
+
"Search GIFs": "Zoek GIF's",
|
|
58
58
|
"Select More Photos": "",
|
|
59
59
|
"Send Anyway": "",
|
|
60
|
-
"Send a message": "",
|
|
61
|
-
"Sending links is not allowed in this conversation": "",
|
|
62
|
-
"Slow mode ON": "",
|
|
60
|
+
"Send a message": "Stuur een bericht",
|
|
61
|
+
"Sending links is not allowed in this conversation": "In dit gesprek is het niet toegestaan links te versturen",
|
|
62
|
+
"Slow mode ON": "Langzame modus aan",
|
|
63
63
|
"The message has been reported to a moderator.": "Het bericht is gerapporteerd aan een moderator.",
|
|
64
64
|
"Thread Reply": "Discussie beantwoorden",
|
|
65
65
|
"Unblock User": "Deblokkeer gebruiker",
|
|
66
66
|
"Unknown User": "",
|
|
67
67
|
"Unmute User": "Dempen van gebruiker opheffen",
|
|
68
68
|
"Unpin from Conversation": "Losmaken van gesprek",
|
|
69
|
-
"Unread Messages": "",
|
|
69
|
+
"Unread Messages": "Ongelezen Berichten",
|
|
70
70
|
"Video": "Video",
|
|
71
|
-
"You": "",
|
|
71
|
+
"You": "U",
|
|
72
72
|
"You can't send messages in this channel": "",
|
|
73
73
|
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} en {{ nonSelfUserLength }} anderen zijn aan het typen",
|
|
74
74
|
"{{ index }} of {{ photoLength }}": "",
|
|
75
|
-
"{{ replyCount }} Replies": "",
|
|
75
|
+
"{{ replyCount }} Replies": "{{ replyCount }} Antwoorden",
|
|
76
76
|
"{{ replyCount }} Thread Replies": "",
|
|
77
77
|
"{{ user }} is typing": "{{ user }} is aan het typen",
|
|
78
|
-
"🏙 Attachment...": ""
|
|
78
|
+
"🏙 Attachment...": "🏙 Bijlage..."
|
|
79
79
|
}
|
package/src/i18n/pt-BR.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"1 Reply": "",
|
|
2
|
+
"1 Reply": "1 Resposta",
|
|
3
3
|
"1 Thread Reply": "",
|
|
4
4
|
"Allow access to your Gallery": "",
|
|
5
5
|
"Allow camera access in device settings": "",
|
|
6
|
-
"Also send to channel": "
|
|
6
|
+
"Also send to channel": "",
|
|
7
7
|
"Are you sure you want to permanently delete this message?": "Tem certeza de que deseja excluir esta mensagem permanentemente?",
|
|
8
8
|
"Are you sure?": "",
|
|
9
9
|
"Block User": "Bloquear Usuário",
|
|
@@ -18,29 +18,29 @@
|
|
|
18
18
|
"Edit Message": "Editar Mensagem",
|
|
19
19
|
"Editing Message": "",
|
|
20
20
|
"Emoji matching": "",
|
|
21
|
-
"Empty message...": "",
|
|
22
|
-
"Error loading": "
|
|
23
|
-
"Error loading channel list...": "",
|
|
21
|
+
"Empty message...": "Mensagem vazia...",
|
|
22
|
+
"Error loading": "",
|
|
23
|
+
"Error loading channel list...": "Erro ao carregar lista de canais...",
|
|
24
24
|
"Error loading messages for this channel...": "Erro ao carregar mensagens para este canal...",
|
|
25
|
-
"Error while loading, please reload/refresh": "",
|
|
25
|
+
"Error while loading, please reload/refresh": "Erro ao carregar, por favor recarregue/atualize",
|
|
26
26
|
"File type not supported": "",
|
|
27
27
|
"Flag": "Reportar",
|
|
28
28
|
"Flag Message": "Reportar Mensagem",
|
|
29
29
|
"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
|
-
"How about sending your first message to a friend?": "",
|
|
30
|
+
"How about sending your first message to a friend?": "Que tal enviar sua primeira mensagem para um amigo?",
|
|
31
31
|
"Instant Commands": "",
|
|
32
|
-
"Let's start chatting!": "",
|
|
33
|
-
"Links are disabled": "",
|
|
34
|
-
"Loading channels...": "",
|
|
35
|
-
"Loading messages...": "",
|
|
36
|
-
"Loading...": "",
|
|
37
|
-
"Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
|
|
32
|
+
"Let's start chatting!": "Vamos começar a conversar!",
|
|
33
|
+
"Links are disabled": "Links estão desabilitados",
|
|
34
|
+
"Loading channels...": "Carregando canais...",
|
|
35
|
+
"Loading messages...": "Carregando mensagens...",
|
|
36
|
+
"Loading...": "Carregando...",
|
|
37
|
+
"Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "Limite máximo de tamanho de arquivo atingido. Por favor, faça o upload de um arquivo abaixo de {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.",
|
|
38
38
|
"Message Reactions": "Reações à Mensagem",
|
|
39
39
|
"Message deleted": "Mensagem excluída",
|
|
40
40
|
"Message flagged": "Mensagem sinalizada",
|
|
41
41
|
"Mute User": "Silenciar Usuário",
|
|
42
42
|
"Not supported": "",
|
|
43
|
-
"Nothing yet...": "",
|
|
43
|
+
"Nothing yet...": "Nada ainda...",
|
|
44
44
|
"Ok": "Ok",
|
|
45
45
|
"Only visible to you": "",
|
|
46
46
|
"Open Settings": "",
|
|
@@ -54,26 +54,26 @@
|
|
|
54
54
|
"Reply": "Responder",
|
|
55
55
|
"Reply to Message": "",
|
|
56
56
|
"Resend": "Reenviar",
|
|
57
|
-
"Search GIFs": "",
|
|
57
|
+
"Search GIFs": "Pesquisar GIFs",
|
|
58
58
|
"Select More Photos": "",
|
|
59
59
|
"Send Anyway": "",
|
|
60
|
-
"Send a message": "",
|
|
61
|
-
"Sending links is not allowed in this conversation": "",
|
|
62
|
-
"Slow mode ON": "",
|
|
60
|
+
"Send a message": "Enviar uma mensagem",
|
|
61
|
+
"Sending links is not allowed in this conversation": "Não é permitido enviar links nesta conversa",
|
|
62
|
+
"Slow mode ON": "Modo Lento ATIVADO",
|
|
63
63
|
"The message has been reported to a moderator.": "A mensagem foi relatada a um moderador.",
|
|
64
64
|
"Thread Reply": "Respostas de Tópico",
|
|
65
65
|
"Unblock User": "Desbloquear Usuário",
|
|
66
66
|
"Unknown User": "",
|
|
67
67
|
"Unmute User": "Remover usuário do modo silencioso",
|
|
68
68
|
"Unpin from Conversation": "Desmarcar como fixado na conversa",
|
|
69
|
-
"Unread Messages": "",
|
|
69
|
+
"Unread Messages": "Mensagens não lidas",
|
|
70
70
|
"Video": "Vídeo",
|
|
71
|
-
"You": "",
|
|
71
|
+
"You": "Você",
|
|
72
72
|
"You can't send messages in this channel": "",
|
|
73
73
|
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} e mais {{ nonSelfUserLength }} pessoa(s) estão digitando",
|
|
74
74
|
"{{ index }} of {{ photoLength }}": "",
|
|
75
|
-
"{{ replyCount }} Replies": "",
|
|
75
|
+
"{{ replyCount }} Replies": "{{ replyCount }} Respostas",
|
|
76
76
|
"{{ replyCount }} Thread Replies": "",
|
|
77
77
|
"{{ user }} is typing": "{{ user }} está digitando",
|
|
78
|
-
"🏙 Attachment...": ""
|
|
78
|
+
"🏙 Attachment...": "🏙 Anexo..."
|
|
79
79
|
}
|
package/src/i18n/ru.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"1 Reply": "",
|
|
2
|
+
"1 Reply": "1 Ответ",
|
|
3
3
|
"1 Thread Reply": "",
|
|
4
4
|
"Allow access to your Gallery": "",
|
|
5
5
|
"Allow camera access in device settings": "",
|
|
6
|
-
"Also send to channel": "
|
|
6
|
+
"Also send to channel": "",
|
|
7
7
|
"Are you sure you want to permanently delete this message?": "Вы действительно хотите удалить это сообщение без возможности восстановления?",
|
|
8
8
|
"Are you sure?": "",
|
|
9
9
|
"Block User": "Заблокировать пользователя",
|
|
@@ -18,29 +18,29 @@
|
|
|
18
18
|
"Edit Message": "Редактировать сообщение",
|
|
19
19
|
"Editing Message": "",
|
|
20
20
|
"Emoji matching": "",
|
|
21
|
-
"Empty message...": "",
|
|
22
|
-
"Error loading": "
|
|
23
|
-
"Error loading channel list...": "",
|
|
21
|
+
"Empty message...": "Пустое сообщение...",
|
|
22
|
+
"Error loading": "",
|
|
23
|
+
"Error loading channel list...": "Ошибка загрузки списка каналов...",
|
|
24
24
|
"Error loading messages for this channel...": "Ошибка загрузки сообщений для этого канала...",
|
|
25
|
-
"Error while loading, please reload/refresh": "",
|
|
25
|
+
"Error while loading, please reload/refresh": "Ошибка загрузки, пожалуйста перезагрузите или обновите",
|
|
26
26
|
"File type not supported": "",
|
|
27
27
|
"Flag": "Пометить",
|
|
28
28
|
"Flag Message": "Пометить сообщение",
|
|
29
29
|
"Flag action failed either due to a network issue or the message is already flagged": "Не удалось отправить жалобу. Возможные причины: проблема с подключением к интернету или ваша жалоба уже была принята.",
|
|
30
|
-
"How about sending your first message to a friend?": "",
|
|
30
|
+
"How about sending your first message to a friend?": "Как насчет отправки первого сообщения другу?",
|
|
31
31
|
"Instant Commands": "",
|
|
32
|
-
"Let's start chatting!": "",
|
|
33
|
-
"Links are disabled": "",
|
|
34
|
-
"Loading channels...": "",
|
|
35
|
-
"Loading messages...": "",
|
|
36
|
-
"Loading...": "",
|
|
37
|
-
"Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
|
|
32
|
+
"Let's start chatting!": "Давайте начнем общаться!",
|
|
33
|
+
"Links are disabled": "Ссылки отключены",
|
|
34
|
+
"Loading channels...": "Загружаю каналы...",
|
|
35
|
+
"Loading messages...": "Загружаю сообщения...",
|
|
36
|
+
"Loading...": "Загружаю...",
|
|
37
|
+
"Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "Достигнут предел максимального размера файла для загрузки. Загрузите файл размером менее {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} МБ.",
|
|
38
38
|
"Message Reactions": "Сообщения Реакции",
|
|
39
39
|
"Message deleted": "Сообщение удалено",
|
|
40
40
|
"Message flagged": "Сообщение отмечено",
|
|
41
41
|
"Mute User": "Отключить пользователя",
|
|
42
42
|
"Not supported": "",
|
|
43
|
-
"Nothing yet...": "",
|
|
43
|
+
"Nothing yet...": "Пока ничего нет...",
|
|
44
44
|
"Ok": "Oк",
|
|
45
45
|
"Only visible to you": "",
|
|
46
46
|
"Open Settings": "",
|
|
@@ -54,26 +54,26 @@
|
|
|
54
54
|
"Reply": "Ответить",
|
|
55
55
|
"Reply to Message": "",
|
|
56
56
|
"Resend": "Отправить",
|
|
57
|
-
"Search GIFs": "",
|
|
57
|
+
"Search GIFs": "Поиск GIF",
|
|
58
58
|
"Select More Photos": "",
|
|
59
59
|
"Send Anyway": "",
|
|
60
|
-
"Send a message": "",
|
|
61
|
-
"Sending links is not allowed in this conversation": "",
|
|
62
|
-
"Slow mode ON": "",
|
|
60
|
+
"Send a message": "Отправить сообщение",
|
|
61
|
+
"Sending links is not allowed in this conversation": "Отправка ссылок недоступна в этом чате",
|
|
62
|
+
"Slow mode ON": "Медленный режим включен",
|
|
63
63
|
"The message has been reported to a moderator.": "Сообщение отправлено модератору.",
|
|
64
64
|
"Thread Reply": "Тема Ответить",
|
|
65
65
|
"Unblock User": "Разблокировать пользователя",
|
|
66
66
|
"Unknown User": "",
|
|
67
67
|
"Unmute User": "Включить микрофон",
|
|
68
68
|
"Unpin from Conversation": "Открепить от беседы",
|
|
69
|
-
"Unread Messages": "",
|
|
69
|
+
"Unread Messages": "Непрочитанные Сообщения",
|
|
70
70
|
"Video": "видео",
|
|
71
|
-
"You": "",
|
|
71
|
+
"You": "Вы",
|
|
72
72
|
"You can't send messages in this channel": "",
|
|
73
73
|
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} и еще {{ nonSelfUserLength }} пишут",
|
|
74
74
|
"{{ index }} of {{ photoLength }}": "",
|
|
75
|
-
"{{ replyCount }} Replies": "",
|
|
75
|
+
"{{ replyCount }} Replies": "{{ replyCount }} Ответов",
|
|
76
76
|
"{{ replyCount }} Thread Replies": "",
|
|
77
77
|
"{{ user }} is typing": "{{ user }} пишет",
|
|
78
|
-
"🏙 Attachment...": ""
|
|
78
|
+
"🏙 Attachment...": "🏙 Вложение..."
|
|
79
79
|
}
|
package/src/i18n/tr.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"1 Reply": "",
|
|
2
|
+
"1 Reply": "1 Cevap",
|
|
3
3
|
"1 Thread Reply": "",
|
|
4
4
|
"Allow access to your Gallery": "",
|
|
5
5
|
"Allow camera access in device settings": "",
|
|
6
|
-
"Also send to channel": "
|
|
6
|
+
"Also send to channel": "",
|
|
7
7
|
"Are you sure you want to permanently delete this message?": "Bu mesajı kalıcı olarak silmek istediğinizden emin misiniz?",
|
|
8
8
|
"Are you sure?": "",
|
|
9
9
|
"Block User": "Kullanıcıyı engelle",
|
|
@@ -18,29 +18,29 @@
|
|
|
18
18
|
"Edit Message": "Mesajı Düzenle",
|
|
19
19
|
"Editing Message": "",
|
|
20
20
|
"Emoji matching": "",
|
|
21
|
-
"Empty message...": "",
|
|
22
|
-
"Error loading": "
|
|
23
|
-
"Error loading channel list...": "",
|
|
21
|
+
"Empty message...": "Boş mesaj...",
|
|
22
|
+
"Error loading": "",
|
|
23
|
+
"Error loading channel list...": "Kanal listesi yüklenirken hata oluştu...",
|
|
24
24
|
"Error loading messages for this channel...": "Bu kanal için mesajlar yüklenirken hata oluştu...",
|
|
25
|
-
"Error while loading, please reload/refresh": "",
|
|
25
|
+
"Error while loading, please reload/refresh": "Yüklenirken hata oluştu, lütfen tekrar deneyiniz",
|
|
26
26
|
"File type not supported": "",
|
|
27
27
|
"Flag": "Raporla",
|
|
28
28
|
"Flag Message": "Mesajı Raporla",
|
|
29
29
|
"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
|
-
"How about sending your first message to a friend?": "",
|
|
30
|
+
"How about sending your first message to a friend?": "İlk mesajınızı bir arkadaşınıza göndermeye ne dersiniz?",
|
|
31
31
|
"Instant Commands": "",
|
|
32
|
-
"Let's start chatting!": "",
|
|
33
|
-
"Links are disabled": "",
|
|
34
|
-
"Loading channels...": "",
|
|
35
|
-
"Loading messages...": "",
|
|
36
|
-
"Loading...": "",
|
|
37
|
-
"Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
|
|
32
|
+
"Let's start chatting!": "Haydi sohbete başlayalım!",
|
|
33
|
+
"Links are disabled": "Bağlantılar devre dışı",
|
|
34
|
+
"Loading channels...": "Kanallar yükleniyor...",
|
|
35
|
+
"Loading messages...": "Mesajlar yükleniyor...",
|
|
36
|
+
"Loading...": "Yükleniyor...",
|
|
37
|
+
"Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "Maksimum dosya boyutu yükleme sınırına ulaşıldı. Lütfen {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB'ın altında bir dosya yükleyin.",
|
|
38
38
|
"Message Reactions": "Mesaj Tepkileri",
|
|
39
39
|
"Message deleted": "Mesaj silindi",
|
|
40
40
|
"Message flagged": "Mesaj işaretlendi",
|
|
41
41
|
"Mute User": "Kullanıcıyı sessize al",
|
|
42
42
|
"Not supported": "",
|
|
43
|
-
"Nothing yet...": "",
|
|
43
|
+
"Nothing yet...": "Henüz değil...",
|
|
44
44
|
"Ok": "Tamam",
|
|
45
45
|
"Only visible to you": "",
|
|
46
46
|
"Open Settings": "",
|
|
@@ -54,26 +54,26 @@
|
|
|
54
54
|
"Reply": "Yanıtla",
|
|
55
55
|
"Reply to Message": "",
|
|
56
56
|
"Resend": "Yeniden gönder",
|
|
57
|
-
"Search GIFs": "",
|
|
57
|
+
"Search GIFs": "GIF Ara",
|
|
58
58
|
"Select More Photos": "",
|
|
59
59
|
"Send Anyway": "",
|
|
60
|
-
"Send a message": "",
|
|
61
|
-
"Sending links is not allowed in this conversation": "",
|
|
62
|
-
"Slow mode ON": "",
|
|
60
|
+
"Send a message": "Mesaj gönder",
|
|
61
|
+
"Sending links is not allowed in this conversation": "Bu konuşmada bağlantı göndermek desteklenmiyor",
|
|
62
|
+
"Slow mode ON": "Yavaş Mod Açık",
|
|
63
63
|
"The message has been reported to a moderator.": "Mesaj moderatöre bildirildi.",
|
|
64
64
|
"Thread Reply": "Konu Yanıtı",
|
|
65
65
|
"Unblock User": "Kullanıcının engelini kaldır",
|
|
66
66
|
"Unknown User": "",
|
|
67
67
|
"Unmute User": "Kullanıcının sesini aç",
|
|
68
68
|
"Unpin from Conversation": "Sabitlemeyi kaldır",
|
|
69
|
-
"Unread Messages": "",
|
|
69
|
+
"Unread Messages": "Okunmamış Mesajlar",
|
|
70
70
|
"Video": "Video",
|
|
71
|
-
"You": "",
|
|
71
|
+
"You": "Sen",
|
|
72
72
|
"You can't send messages in this channel": "",
|
|
73
73
|
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} ve {{ nonSelfUserLength }} kişi daha yazıyor",
|
|
74
74
|
"{{ index }} of {{ photoLength }}": "",
|
|
75
|
-
"{{ replyCount }} Replies": "",
|
|
75
|
+
"{{ replyCount }} Replies": "{{ replyCount }} Cevap",
|
|
76
76
|
"{{ replyCount }} Thread Replies": "",
|
|
77
77
|
"{{ user }} is typing": "{{ user }} yazıyor",
|
|
78
|
-
"🏙 Attachment...": ""
|
|
78
|
+
"🏙 Attachment...": "🏙 Ek..."
|
|
79
79
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { DefaultStreamChatGenerics } from 'src/types/types';
|
|
2
|
+
import type { Channel } from 'stream-chat';
|
|
3
|
+
|
|
4
|
+
import { mapChannelToStorable } from '../mappers/mapChannelToStorable';
|
|
5
|
+
import { QuickSqliteClient } from '../QuickSqliteClient';
|
|
6
|
+
import { createUpsertQuery } from '../sqlite-utils/createUpsertQuery';
|
|
7
|
+
|
|
8
|
+
export const upsertChannelDataFromChannel = <
|
|
9
|
+
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
10
|
+
>({
|
|
11
|
+
channel,
|
|
12
|
+
flush = true,
|
|
13
|
+
}: {
|
|
14
|
+
channel: Channel<StreamChatGenerics>;
|
|
15
|
+
flush?: boolean;
|
|
16
|
+
}) => {
|
|
17
|
+
const storableChannel = mapChannelToStorable(channel);
|
|
18
|
+
if (!storableChannel) return;
|
|
19
|
+
const query = createUpsertQuery('channels', storableChannel);
|
|
20
|
+
if (flush) {
|
|
21
|
+
QuickSqliteClient.executeSqlBatch([query]);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
return [query];
|
|
25
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import type { Channel, ChannelResponse } from 'stream-chat';
|
|
2
|
+
|
|
3
|
+
import { mapDateTimeToStorable } from './mapDateTimeToStorable';
|
|
4
|
+
|
|
5
|
+
import type { DefaultStreamChatGenerics } from '../../types/types';
|
|
6
|
+
|
|
7
|
+
import type { TableRow } from '../types';
|
|
8
|
+
|
|
9
|
+
export const mapChannelToStorable = <
|
|
10
|
+
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
11
|
+
>(
|
|
12
|
+
channel: Channel<StreamChatGenerics>,
|
|
13
|
+
): TableRow<'channels'> | undefined => {
|
|
14
|
+
if (!channel.data) return;
|
|
15
|
+
const {
|
|
16
|
+
auto_translation_enabled,
|
|
17
|
+
auto_translation_language,
|
|
18
|
+
cid,
|
|
19
|
+
config,
|
|
20
|
+
cooldown,
|
|
21
|
+
created_at,
|
|
22
|
+
deleted_at,
|
|
23
|
+
disabled,
|
|
24
|
+
frozen,
|
|
25
|
+
hidden,
|
|
26
|
+
id,
|
|
27
|
+
invites,
|
|
28
|
+
last_message_at,
|
|
29
|
+
member_count,
|
|
30
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
31
|
+
members,
|
|
32
|
+
muted,
|
|
33
|
+
own_capabilities,
|
|
34
|
+
team,
|
|
35
|
+
truncated_at,
|
|
36
|
+
truncated_by,
|
|
37
|
+
truncated_by_id,
|
|
38
|
+
type,
|
|
39
|
+
updated_at,
|
|
40
|
+
...extraData
|
|
41
|
+
} = channel.data as unknown as ChannelResponse<StreamChatGenerics>;
|
|
42
|
+
|
|
43
|
+
return {
|
|
44
|
+
autoTranslationEnabled: auto_translation_enabled,
|
|
45
|
+
autoTranslationLanguage: auto_translation_language,
|
|
46
|
+
cid,
|
|
47
|
+
config: config && JSON.stringify(config),
|
|
48
|
+
cooldown,
|
|
49
|
+
createdAt: mapDateTimeToStorable(created_at),
|
|
50
|
+
deletedAt: mapDateTimeToStorable(deleted_at),
|
|
51
|
+
disabled,
|
|
52
|
+
extraData: JSON.stringify(extraData),
|
|
53
|
+
frozen,
|
|
54
|
+
hidden,
|
|
55
|
+
id,
|
|
56
|
+
invites: invites && JSON.stringify(invites),
|
|
57
|
+
lastMessageAt: mapDateTimeToStorable(last_message_at),
|
|
58
|
+
memberCount: member_count,
|
|
59
|
+
muted,
|
|
60
|
+
ownCapabilities: own_capabilities && JSON.stringify(own_capabilities),
|
|
61
|
+
team,
|
|
62
|
+
truncatedAt: truncated_at,
|
|
63
|
+
truncatedBy: truncated_by && JSON.stringify(truncated_by),
|
|
64
|
+
truncatedById: truncated_by_id,
|
|
65
|
+
type,
|
|
66
|
+
updatedAt: updated_at,
|
|
67
|
+
};
|
|
68
|
+
};
|
|
@@ -90,7 +90,11 @@ export class DBSyncManager {
|
|
|
90
90
|
};
|
|
91
91
|
};
|
|
92
92
|
|
|
93
|
-
static sync = async
|
|
93
|
+
static sync = async <
|
|
94
|
+
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
95
|
+
>(
|
|
96
|
+
client: StreamChat<StreamChatGenerics>,
|
|
97
|
+
) => {
|
|
94
98
|
if (!this.client?.user) return;
|
|
95
99
|
const cids = getAllChannelIds();
|
|
96
100
|
// If there are no channels, then there is no need to sync.
|
|
@@ -113,7 +117,7 @@ export class DBSyncManager {
|
|
|
113
117
|
try {
|
|
114
118
|
const result = await this.client.sync(cids, lastSyncedAtDate.toISOString());
|
|
115
119
|
const queries = result.events.reduce<PreparedQueries[]>((queries, event) => {
|
|
116
|
-
queries = queries.concat(handleEventToSyncDB(event, false));
|
|
120
|
+
queries = queries.concat(handleEventToSyncDB(event, client, false));
|
|
117
121
|
return queries;
|
|
118
122
|
}, []);
|
|
119
123
|
|
|
@@ -137,7 +141,7 @@ export class DBSyncManager {
|
|
|
137
141
|
if (!this.client) return;
|
|
138
142
|
|
|
139
143
|
await this.executePendingTasks(this.client);
|
|
140
|
-
await this.sync();
|
|
144
|
+
await this.sync(this.client);
|
|
141
145
|
};
|
|
142
146
|
|
|
143
147
|
static queueTask = async <
|
package/src/version.json
CHANGED