stream-chat-react-native-core 5.21.0 → 5.22.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/ImageGallery/ImageGallery.js +6 -5
- package/lib/commonjs/components/ImageGallery/ImageGallery.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryFooter.js +18 -15
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryVideoControl.js +41 -12
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryVideoControl.js.map +1 -1
- package/lib/commonjs/i18n/en.json +1 -1
- package/lib/commonjs/i18n/es.json +72 -0
- package/lib/commonjs/i18n/fr.json +51 -51
- package/lib/commonjs/i18n/hi.json +51 -51
- package/lib/commonjs/i18n/it.json +51 -51
- package/lib/commonjs/i18n/nl.json +51 -51
- package/lib/commonjs/i18n/ru.json +51 -51
- package/lib/commonjs/i18n/tr.json +51 -51
- package/lib/commonjs/utils/Streami18n.js +4 -1
- package/lib/commonjs/utils/Streami18n.js.map +1 -1
- package/lib/commonjs/version.json +1 -1
- package/lib/module/components/ImageGallery/ImageGallery.js +6 -5
- package/lib/module/components/ImageGallery/ImageGallery.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js +18 -15
- package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryVideoControl.js +41 -12
- package/lib/module/components/ImageGallery/components/ImageGalleryVideoControl.js.map +1 -1
- package/lib/module/i18n/en.json +1 -1
- package/lib/module/i18n/es.json +72 -0
- package/lib/module/i18n/fr.json +51 -51
- package/lib/module/i18n/hi.json +51 -51
- package/lib/module/i18n/it.json +51 -51
- package/lib/module/i18n/nl.json +51 -51
- package/lib/module/i18n/ru.json +51 -51
- package/lib/module/i18n/tr.json +51 -51
- package/lib/module/utils/Streami18n.js +4 -1
- package/lib/module/utils/Streami18n.js.map +1 -1
- package/lib/module/version.json +1 -1
- package/lib/typescript/components/ImageGallery/components/ImageGalleryFooter.d.ts +3 -0
- package/lib/typescript/i18n/en.json +1 -1
- package/lib/typescript/i18n/es.json +72 -0
- package/lib/typescript/i18n/fr.json +51 -51
- package/lib/typescript/i18n/hi.json +51 -51
- package/lib/typescript/i18n/it.json +51 -51
- package/lib/typescript/i18n/nl.json +51 -51
- package/lib/typescript/i18n/ru.json +51 -51
- package/lib/typescript/i18n/tr.json +51 -51
- package/lib/typescript/utils/Streami18n.d.ts +7 -1
- package/package.json +1 -1
- package/src/components/ImageGallery/ImageGallery.tsx +1 -0
- package/src/components/ImageGallery/components/ImageGalleryFooter.tsx +6 -2
- package/src/components/ImageGallery/components/ImageGalleryVideoControl.tsx +12 -7
- package/src/i18n/en.json +1 -1
- package/src/i18n/es.json +72 -0
- package/src/i18n/fr.json +51 -51
- package/src/i18n/hi.json +51 -51
- package/src/i18n/it.json +51 -51
- package/src/i18n/nl.json +51 -51
- package/src/i18n/ru.json +51 -51
- package/src/i18n/tr.json +51 -51
- package/src/utils/Streami18n.ts +13 -6
- package/src/version.json +1 -1
|
@@ -2,70 +2,70 @@
|
|
|
2
2
|
"1 Reply": "1 Ответ",
|
|
3
3
|
"1 Thread Reply": "1 тема Ответить",
|
|
4
4
|
"Allow access to your Gallery": "Разрешить доступ к вашей галерее",
|
|
5
|
-
"Also send to channel": "
|
|
6
|
-
"Are you sure you want to permanently delete this message?": "
|
|
7
|
-
"Block User": "
|
|
8
|
-
"Cancel": "
|
|
9
|
-
"Cannot Flag Message": "
|
|
10
|
-
"Copy Message": "
|
|
11
|
-
"Delete": "
|
|
12
|
-
"Delete Message": "
|
|
13
|
-
"Do you want to send a copy of this message to a moderator for further investigation?": "
|
|
14
|
-
"Edit Message": "
|
|
15
|
-
"Editing Message": "
|
|
16
|
-
"Emoji matching": "
|
|
17
|
-
"Empty message...": "
|
|
18
|
-
"Error loading": "
|
|
19
|
-
"Error loading channel list...": "
|
|
20
|
-
"Error loading messages for this channel...": "
|
|
21
|
-
"Error while loading, please reload/refresh": "
|
|
22
|
-
"File type not supported": "
|
|
23
|
-
"Flag": "
|
|
24
|
-
"Flag Message": "
|
|
25
|
-
"Flag action failed either due to a network issue or the message is already flagged": "
|
|
26
|
-
"Instant Commands": "
|
|
27
|
-
"Links are disabled": "
|
|
28
|
-
"Loading channels...": "
|
|
29
|
-
"Loading messages...": "
|
|
30
|
-
"Loading...": "
|
|
31
|
-
"Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "
|
|
5
|
+
"Also send to channel": "",
|
|
6
|
+
"Are you sure you want to permanently delete this message?": "",
|
|
7
|
+
"Block User": "",
|
|
8
|
+
"Cancel": "",
|
|
9
|
+
"Cannot Flag Message": "",
|
|
10
|
+
"Copy Message": "",
|
|
11
|
+
"Delete": "",
|
|
12
|
+
"Delete Message": "",
|
|
13
|
+
"Do you want to send a copy of this message to a moderator for further investigation?": "",
|
|
14
|
+
"Edit Message": "",
|
|
15
|
+
"Editing Message": "",
|
|
16
|
+
"Emoji matching": "",
|
|
17
|
+
"Empty message...": "",
|
|
18
|
+
"Error loading": "",
|
|
19
|
+
"Error loading channel list...": "",
|
|
20
|
+
"Error loading messages for this channel...": "",
|
|
21
|
+
"Error while loading, please reload/refresh": "",
|
|
22
|
+
"File type not supported": "",
|
|
23
|
+
"Flag": "",
|
|
24
|
+
"Flag Message": "",
|
|
25
|
+
"Flag action failed either due to a network issue or the message is already flagged": "",
|
|
26
|
+
"Instant Commands": "",
|
|
27
|
+
"Links are disabled": "",
|
|
28
|
+
"Loading channels...": "",
|
|
29
|
+
"Loading messages...": "",
|
|
30
|
+
"Loading...": "",
|
|
31
|
+
"Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
|
|
32
32
|
"Message Reactions": "Сообщения Реакции",
|
|
33
|
-
"Message deleted": "
|
|
34
|
-
"Message flagged": "
|
|
35
|
-
"Mute User": "
|
|
36
|
-
"Not supported": "
|
|
37
|
-
"Nothing yet...": "
|
|
38
|
-
"Ok": "
|
|
33
|
+
"Message deleted": "",
|
|
34
|
+
"Message flagged": "",
|
|
35
|
+
"Mute User": "",
|
|
36
|
+
"Not supported": "",
|
|
37
|
+
"Nothing yet...": "",
|
|
38
|
+
"Ok": "",
|
|
39
39
|
"Only visible to you": "Видно только вам",
|
|
40
40
|
"Photo": "Фото",
|
|
41
41
|
"Photos and Videos": "Фото и видео",
|
|
42
|
-
"Pin to Conversation": "
|
|
42
|
+
"Pin to Conversation": "",
|
|
43
43
|
"Pinned by": "Закреплено пользователем",
|
|
44
44
|
"Please enable access to your photos and videos so you can share them.": "Разрешите доступ к своим фотографиям и видео, чтобы вы могли ими поделиться.",
|
|
45
|
-
"Please select a channel first": "
|
|
46
|
-
"Reconnecting...": "
|
|
47
|
-
"Reply": "
|
|
48
|
-
"Reply to Message": "
|
|
49
|
-
"Resend": "
|
|
50
|
-
"Search GIFs": "
|
|
45
|
+
"Please select a channel first": "",
|
|
46
|
+
"Reconnecting...": "",
|
|
47
|
+
"Reply": "",
|
|
48
|
+
"Reply to Message": "",
|
|
49
|
+
"Resend": "",
|
|
50
|
+
"Search GIFs": "",
|
|
51
51
|
"Select More Photos": "Выбрать больше фотографий",
|
|
52
|
-
"Send a message": "
|
|
53
|
-
"Sending links is not allowed in this conversation": "
|
|
54
|
-
"Slow mode ON": "
|
|
55
|
-
"The message has been reported to a moderator.": "
|
|
56
|
-
"Thread Reply": "
|
|
57
|
-
"Unblock User": "
|
|
52
|
+
"Send a message": "",
|
|
53
|
+
"Sending links is not allowed in this conversation": "",
|
|
54
|
+
"Slow mode ON": "",
|
|
55
|
+
"The message has been reported to a moderator.": "",
|
|
56
|
+
"Thread Reply": "",
|
|
57
|
+
"Unblock User": "",
|
|
58
58
|
"Unknown User": "Неизвестный пользователь",
|
|
59
|
-
"Unmute User": "
|
|
60
|
-
"Unpin from Conversation": "
|
|
59
|
+
"Unmute User": "",
|
|
60
|
+
"Unpin from Conversation": "",
|
|
61
61
|
"Unread Messages": "Непрочитанные Сообщения",
|
|
62
62
|
"Video": "видео",
|
|
63
|
-
"You": "
|
|
64
|
-
"You can't send messages in this channel": "
|
|
63
|
+
"You": "",
|
|
64
|
+
"You can't send messages in this channel": "",
|
|
65
65
|
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} и еще {{ nonSelfUserLength }} пишут",
|
|
66
66
|
"{{ index }} of {{ photoLength }}": "{{ index }} из {{ photoLength }}",
|
|
67
67
|
"{{ replyCount }} Replies": "{{ replyCount }} Ответов",
|
|
68
68
|
"{{ replyCount }} Thread Replies": "{{replyCount}} Ответы в темах",
|
|
69
69
|
"{{ user }} is typing": "{{ user }} пишет",
|
|
70
|
-
"🏙 Attachment...": "
|
|
70
|
+
"🏙 Attachment...": ""
|
|
71
71
|
}
|
|
@@ -2,70 +2,70 @@
|
|
|
2
2
|
"1 Reply": "1 Cevap",
|
|
3
3
|
"1 Thread Reply": "1 Konu Yanıtı",
|
|
4
4
|
"Allow access to your Gallery": "Galerinize erişime izin verin",
|
|
5
|
-
"Also send to channel": "
|
|
6
|
-
"Are you sure you want to permanently delete this message?": "
|
|
7
|
-
"Block User": "
|
|
8
|
-
"Cancel": "
|
|
9
|
-
"Cannot Flag Message": "
|
|
10
|
-
"Copy Message": "
|
|
11
|
-
"Delete": "
|
|
12
|
-
"Delete Message": "
|
|
13
|
-
"Do you want to send a copy of this message to a moderator for further investigation?": "
|
|
14
|
-
"Edit Message": "
|
|
15
|
-
"Editing Message": "
|
|
16
|
-
"Emoji matching": "
|
|
17
|
-
"Empty message...": "
|
|
18
|
-
"Error loading": "
|
|
19
|
-
"Error loading channel list...": "
|
|
20
|
-
"Error loading messages for this channel...": "
|
|
21
|
-
"Error while loading, please reload/refresh": "
|
|
22
|
-
"File type not supported": "
|
|
23
|
-
"Flag": "
|
|
24
|
-
"Flag Message": "
|
|
25
|
-
"Flag action failed either due to a network issue or the message is already flagged": "
|
|
26
|
-
"Instant Commands": "
|
|
27
|
-
"Links are disabled": "
|
|
28
|
-
"Loading channels...": "
|
|
29
|
-
"Loading messages...": "
|
|
30
|
-
"Loading...": "
|
|
31
|
-
"Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "
|
|
5
|
+
"Also send to channel": "",
|
|
6
|
+
"Are you sure you want to permanently delete this message?": "",
|
|
7
|
+
"Block User": "",
|
|
8
|
+
"Cancel": "",
|
|
9
|
+
"Cannot Flag Message": "",
|
|
10
|
+
"Copy Message": "",
|
|
11
|
+
"Delete": "",
|
|
12
|
+
"Delete Message": "",
|
|
13
|
+
"Do you want to send a copy of this message to a moderator for further investigation?": "",
|
|
14
|
+
"Edit Message": "",
|
|
15
|
+
"Editing Message": "",
|
|
16
|
+
"Emoji matching": "",
|
|
17
|
+
"Empty message...": "",
|
|
18
|
+
"Error loading": "",
|
|
19
|
+
"Error loading channel list...": "",
|
|
20
|
+
"Error loading messages for this channel...": "",
|
|
21
|
+
"Error while loading, please reload/refresh": "",
|
|
22
|
+
"File type not supported": "",
|
|
23
|
+
"Flag": "",
|
|
24
|
+
"Flag Message": "",
|
|
25
|
+
"Flag action failed either due to a network issue or the message is already flagged": "",
|
|
26
|
+
"Instant Commands": "",
|
|
27
|
+
"Links are disabled": "",
|
|
28
|
+
"Loading channels...": "",
|
|
29
|
+
"Loading messages...": "",
|
|
30
|
+
"Loading...": "",
|
|
31
|
+
"Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
|
|
32
32
|
"Message Reactions": "Mesaj Tepkileri",
|
|
33
|
-
"Message deleted": "
|
|
34
|
-
"Message flagged": "
|
|
35
|
-
"Mute User": "
|
|
36
|
-
"Not supported": "
|
|
37
|
-
"Nothing yet...": "
|
|
38
|
-
"Ok": "
|
|
33
|
+
"Message deleted": "",
|
|
34
|
+
"Message flagged": "",
|
|
35
|
+
"Mute User": "",
|
|
36
|
+
"Not supported": "",
|
|
37
|
+
"Nothing yet...": "",
|
|
38
|
+
"Ok": "",
|
|
39
39
|
"Only visible to you": "Sadece siz görebilirsiniz",
|
|
40
40
|
"Photo": "Fotoğraf",
|
|
41
41
|
"Photos and Videos": "Fotoğraflar ve Videolar",
|
|
42
|
-
"Pin to Conversation": "
|
|
42
|
+
"Pin to Conversation": "",
|
|
43
43
|
"Pinned by": "Tarafından sabitlendi",
|
|
44
44
|
"Please enable access to your photos and videos so you can share them.": "Paylaşım yapabilmek için lutfen fotoğraflarınıza ve videolarınıza erişimi etkinleştirin.",
|
|
45
|
-
"Please select a channel first": "
|
|
46
|
-
"Reconnecting...": "
|
|
47
|
-
"Reply": "
|
|
48
|
-
"Reply to Message": "
|
|
49
|
-
"Resend": "
|
|
50
|
-
"Search GIFs": "
|
|
45
|
+
"Please select a channel first": "",
|
|
46
|
+
"Reconnecting...": "",
|
|
47
|
+
"Reply": "",
|
|
48
|
+
"Reply to Message": "",
|
|
49
|
+
"Resend": "",
|
|
50
|
+
"Search GIFs": "",
|
|
51
51
|
"Select More Photos": "Daha Fazla Fotoğraf Seçin",
|
|
52
|
-
"Send a message": "
|
|
53
|
-
"Sending links is not allowed in this conversation": "
|
|
54
|
-
"Slow mode ON": "
|
|
55
|
-
"The message has been reported to a moderator.": "
|
|
56
|
-
"Thread Reply": "
|
|
57
|
-
"Unblock User": "
|
|
52
|
+
"Send a message": "",
|
|
53
|
+
"Sending links is not allowed in this conversation": "",
|
|
54
|
+
"Slow mode ON": "",
|
|
55
|
+
"The message has been reported to a moderator.": "",
|
|
56
|
+
"Thread Reply": "",
|
|
57
|
+
"Unblock User": "",
|
|
58
58
|
"Unknown User": "Bilinmeyen kullanıcı",
|
|
59
|
-
"Unmute User": "
|
|
60
|
-
"Unpin from Conversation": "
|
|
59
|
+
"Unmute User": "",
|
|
60
|
+
"Unpin from Conversation": "",
|
|
61
61
|
"Unread Messages": "Okunmamış Mesajlar",
|
|
62
62
|
"Video": "Video",
|
|
63
|
-
"You": "
|
|
64
|
-
"You can't send messages in this channel": "
|
|
63
|
+
"You": "",
|
|
64
|
+
"You can't send messages in this channel": "",
|
|
65
65
|
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} ve {{ nonSelfUserLength }} kişi daha yazıyor",
|
|
66
66
|
"{{ index }} of {{ photoLength }}": "{{ index }} / {{ photoLength }}",
|
|
67
67
|
"{{ replyCount }} Replies": "{{ replyCount }} Cevap",
|
|
68
68
|
"{{ replyCount }} Thread Replies": "{{responseCount}} Konu Cevapı",
|
|
69
69
|
"{{ user }} is typing": "{{ user }} yazıyor",
|
|
70
|
-
"🏙 Attachment...": "
|
|
70
|
+
"🏙 Attachment...": ""
|
|
71
71
|
}
|
|
@@ -3,7 +3,9 @@ import { FallbackLng, TFunction } from 'i18next';
|
|
|
3
3
|
import type moment from 'moment';
|
|
4
4
|
import type { TDateTimeParser } from '../contexts/translationContext/TranslationContext';
|
|
5
5
|
import enTranslations from '../i18n/en.json';
|
|
6
|
+
import 'dayjs/locale/es';
|
|
6
7
|
import 'dayjs/locale/fr';
|
|
8
|
+
import 'dayjs/locale/he';
|
|
7
9
|
import 'dayjs/locale/hi';
|
|
8
10
|
import 'dayjs/locale/it';
|
|
9
11
|
import 'dayjs/locale/ja';
|
|
@@ -11,7 +13,6 @@ import 'dayjs/locale/ko';
|
|
|
11
13
|
import 'dayjs/locale/nl';
|
|
12
14
|
import 'dayjs/locale/ru';
|
|
13
15
|
import 'dayjs/locale/tr';
|
|
14
|
-
import 'dayjs/locale/he';
|
|
15
16
|
/**
|
|
16
17
|
* These locale imports also set these locales globally.
|
|
17
18
|
* So as a last step we import the english locale to make
|
|
@@ -134,6 +135,11 @@ export declare class Streami18n {
|
|
|
134
135
|
"Error while loading, please reload/refresh": string;
|
|
135
136
|
"File type not supported": string;
|
|
136
137
|
Flag: string;
|
|
138
|
+
/**
|
|
139
|
+
* These locale imports also set these locales globally.
|
|
140
|
+
* So as a last step we import the english locale to make
|
|
141
|
+
* sure we don't mess up languages in other places in the app.
|
|
142
|
+
*/
|
|
137
143
|
"Flag Message": string;
|
|
138
144
|
"Flag action failed either due to a network issue or the message is already flagged": string;
|
|
139
145
|
"Instant Commands": string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stream-chat-react-native-core",
|
|
3
3
|
"description": "The official React Native and Expo components for Stream Chat, a service for building chat applications",
|
|
4
|
-
"version": "5.
|
|
4
|
+
"version": "5.22.0-beta.1",
|
|
5
5
|
"author": {
|
|
6
6
|
"company": "Stream.io Inc",
|
|
7
7
|
"name": "Stream.io Inc"
|
|
@@ -669,6 +669,7 @@ export const ImageGallery = <
|
|
|
669
669
|
photoLength={imageGalleryAttachments.length}
|
|
670
670
|
progress={imageGalleryAttachments[selectedIndex].progress || 0}
|
|
671
671
|
selectedIndex={selectedIndex}
|
|
672
|
+
videoRef={videoRef}
|
|
672
673
|
visible={headerFooterVisible}
|
|
673
674
|
{...imageGalleryCustomComponents?.footer}
|
|
674
675
|
/>
|
|
@@ -7,7 +7,7 @@ import { ImageGalleryVideoControl } from './ImageGalleryVideoControl';
|
|
|
7
7
|
import { useTheme } from '../../../contexts/themeContext/ThemeContext';
|
|
8
8
|
import { useTranslationContext } from '../../../contexts/translationContext/TranslationContext';
|
|
9
9
|
import { Grid as GridIconDefault, Share as ShareIconDefault } from '../../../icons';
|
|
10
|
-
import { deleteFile, saveFile, shareImage } from '../../../native';
|
|
10
|
+
import { deleteFile, saveFile, shareImage, VideoType } from '../../../native';
|
|
11
11
|
|
|
12
12
|
import type { DefaultStreamChatGenerics } from '../../../types/types';
|
|
13
13
|
import type { Photo } from '../ImageGallery';
|
|
@@ -67,6 +67,7 @@ export type ImageGalleryFooterVideoControlProps = {
|
|
|
67
67
|
onPlayPause: (status?: boolean) => void;
|
|
68
68
|
paused: boolean;
|
|
69
69
|
progress: number;
|
|
70
|
+
videoRef: React.RefObject<VideoType>;
|
|
70
71
|
};
|
|
71
72
|
|
|
72
73
|
export type ImageGalleryFooterVideoControlComponent = ({
|
|
@@ -100,6 +101,7 @@ type ImageGalleryFooterPropsWithContext<
|
|
|
100
101
|
photoLength: number;
|
|
101
102
|
progress: number;
|
|
102
103
|
selectedIndex: number;
|
|
104
|
+
videoRef: React.RefObject<VideoType>;
|
|
103
105
|
visible: Animated.SharedValue<number>;
|
|
104
106
|
};
|
|
105
107
|
|
|
@@ -125,6 +127,7 @@ export const ImageGalleryFooterWithContext = <
|
|
|
125
127
|
selectedIndex,
|
|
126
128
|
ShareIcon,
|
|
127
129
|
videoControlElement,
|
|
130
|
+
videoRef,
|
|
128
131
|
visible,
|
|
129
132
|
} = props;
|
|
130
133
|
|
|
@@ -181,13 +184,14 @@ export const ImageGalleryFooterWithContext = <
|
|
|
181
184
|
<ReanimatedSafeAreaView style={[container, footerStyle, { backgroundColor: white }]}>
|
|
182
185
|
{photo.type === 'video' ? (
|
|
183
186
|
videoControlElement ? (
|
|
184
|
-
videoControlElement({ duration, onPlayPause, paused, progress })
|
|
187
|
+
videoControlElement({ duration, onPlayPause, paused, progress, videoRef })
|
|
185
188
|
) : (
|
|
186
189
|
<ImageGalleryVideoControl
|
|
187
190
|
duration={duration}
|
|
188
191
|
onPlayPause={onPlayPause}
|
|
189
192
|
paused={paused}
|
|
190
193
|
progress={progress}
|
|
194
|
+
videoRef={videoRef}
|
|
191
195
|
/>
|
|
192
196
|
)
|
|
193
197
|
) : null}
|
|
@@ -35,7 +35,7 @@ const styles = StyleSheet.create({
|
|
|
35
35
|
|
|
36
36
|
export const ImageGalleryVideoControl: React.FC<ImageGalleryFooterVideoControlProps> = React.memo(
|
|
37
37
|
(props) => {
|
|
38
|
-
const { duration, onPlayPause, paused, progress } = props;
|
|
38
|
+
const { duration, onPlayPause, paused, progress, videoRef } = props;
|
|
39
39
|
|
|
40
40
|
const videoDuration = duration
|
|
41
41
|
? duration / 3600 >= 1
|
|
@@ -60,14 +60,19 @@ export const ImageGalleryVideoControl: React.FC<ImageGalleryFooterVideoControlPr
|
|
|
60
60
|
},
|
|
61
61
|
} = useTheme();
|
|
62
62
|
|
|
63
|
+
const handlePlayPause = async () => {
|
|
64
|
+
if (progress === 1) {
|
|
65
|
+
// For expo CLI
|
|
66
|
+
if (videoRef.current?.setPositionAsync) {
|
|
67
|
+
await videoRef.current.setPositionAsync(0);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
onPlayPause();
|
|
71
|
+
};
|
|
72
|
+
|
|
63
73
|
return (
|
|
64
74
|
<View style={[styles.videoContainer, videoContainer]}>
|
|
65
|
-
<TouchableOpacity
|
|
66
|
-
accessibilityLabel='Play Pause Button'
|
|
67
|
-
onPress={() => {
|
|
68
|
-
onPlayPause();
|
|
69
|
-
}}
|
|
70
|
-
>
|
|
75
|
+
<TouchableOpacity accessibilityLabel='Play Pause Button' onPress={handlePlayPause}>
|
|
71
76
|
<View style={[styles.roundedView, roundedView, { backgroundColor: static_white }]}>
|
|
72
77
|
{paused ? (
|
|
73
78
|
<Play accessibilityLabel='Play Icon' height={24} pathFill={static_black} width={24} />
|
package/src/i18n/en.json
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"File type not supported": "File type not supported",
|
|
23
23
|
"Flag": "Flag",
|
|
24
24
|
"Flag Message": "Flag Message",
|
|
25
|
-
"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
|
|
25
|
+
"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",
|
|
26
26
|
"Instant Commands": "Instant Commands",
|
|
27
27
|
"Links are disabled": "Links are disabled",
|
|
28
28
|
"Loading channels...": "Loading channels...",
|
package/src/i18n/es.json
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
{
|
|
2
|
+
"1 Reply": "1 respuesta",
|
|
3
|
+
"1 Thread Reply": "1 respuesta de hilo",
|
|
4
|
+
"Allow access to your Gallery": "Permitir acceso a tu galería",
|
|
5
|
+
"Also send to channel": "También enviar al canal",
|
|
6
|
+
"Are you sure you want to permanently delete this message?": "¿Estás seguro de que deseas eliminar permanentemente este mensaje?",
|
|
7
|
+
"Block User": "Bloquear usuario",
|
|
8
|
+
"Cancel": "Cancelar",
|
|
9
|
+
"Cannot Flag Message": "No se puede reportar el mensaje",
|
|
10
|
+
"Copy Message": "Copiar mensaje",
|
|
11
|
+
"Delete": "Eliminar",
|
|
12
|
+
"Delete Message": "Eliminar mensaje",
|
|
13
|
+
"Do you want to send a copy of this message to a moderator for further investigation?": "¿Deseas enviar una copia de este mensaje a un moderador para una investigación adicional?",
|
|
14
|
+
"Edit Message": "Editar mensaje",
|
|
15
|
+
"Editing Message": "Editando mensaje",
|
|
16
|
+
"Emoji matching": "Coincidencia de emoji",
|
|
17
|
+
"Empty message...": "Mensaje vacío...",
|
|
18
|
+
"Error loading": "Error al cargar",
|
|
19
|
+
"Error loading channel list...": "Error al cargar la lista de canales...",
|
|
20
|
+
"Error loading messages for this channel...": "Error al cargar los mensajes de este canal...",
|
|
21
|
+
"Error while loading, please reload/refresh": "Error al cargar, por favor recarga/actualiza",
|
|
22
|
+
"File type not supported": "Tipo de archivo no admitido",
|
|
23
|
+
"Flag": "Reportar",
|
|
24
|
+
"Flag Message": "Reportar mensaje",
|
|
25
|
+
"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.",
|
|
26
|
+
"Instant Commands": "Comandos instantáneos",
|
|
27
|
+
"Links are disabled": "Los enlaces están desactivados",
|
|
28
|
+
"Loading channels...": "Cargando canales...",
|
|
29
|
+
"Loading messages...": "Cargando mensajes...",
|
|
30
|
+
"Loading...": "Cargando...",
|
|
31
|
+
"Message Reactions": "Reacciones al mensaje",
|
|
32
|
+
"Message deleted": "Mensaje eliminado",
|
|
33
|
+
"Message flagged": "Mensaje reportado",
|
|
34
|
+
"Mute User": "Silenciar usuario",
|
|
35
|
+
"Not supported": "No admitido",
|
|
36
|
+
"Nothing yet...": "Aún no hay nada...",
|
|
37
|
+
"Ok": "Aceptar",
|
|
38
|
+
"Only visible to you": "Solo visible para ti",
|
|
39
|
+
"Photo": "Foto",
|
|
40
|
+
"Photos": "Fotos",
|
|
41
|
+
"Photos and Videos": "Fotos y videos",
|
|
42
|
+
"Pin to Conversation": "Fijar a la conversación",
|
|
43
|
+
"Pinned by": "Fijado por",
|
|
44
|
+
"Please enable access to your photos and videos so you can share them.": "Por favor, habilita el acceso a tus fotos y videos para poder compartirlos.",
|
|
45
|
+
"Please select a channel first": "Por favor, selecciona primero un canal",
|
|
46
|
+
"Reconnecting...": "Reconectando...",
|
|
47
|
+
"Reply": "Responder",
|
|
48
|
+
"Reply to Message": "Responder al mensaje",
|
|
49
|
+
"Resend": "Reenviar",
|
|
50
|
+
"Search GIFs": "Buscar GIFs",
|
|
51
|
+
"Send a message": "Enviar un mensaje",
|
|
52
|
+
"Sending links is not allowed in this conversation": "No está permitido enviar enlaces en esta conversación",
|
|
53
|
+
"Slow mode ON": "Modo lento ACTIVADO",
|
|
54
|
+
"The message has been reported to a moderator.": "El mensaje ha sido reportado a un moderador.",
|
|
55
|
+
"Thread Reply": "Respuesta de hilo",
|
|
56
|
+
"Unblock User": "Desbloquear usuario",
|
|
57
|
+
"Unknown User": "Usuario desconocido",
|
|
58
|
+
"Unmute User": "Activar sonido del usuario",
|
|
59
|
+
"Unpin from Conversation": "Desmarcar de la conversación",
|
|
60
|
+
"Unread Messages": "Mensajes no leídos",
|
|
61
|
+
"Video": "Video",
|
|
62
|
+
"You": "Tú",
|
|
63
|
+
"You can't send messages in this channel": "No puedes enviar mensajes en este canal",
|
|
64
|
+
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} y {{ nonSelfUserLength }} más están escribiendo",
|
|
65
|
+
"{{ index }} of {{ photoLength }}": "{{ index }} de {{ photoLength }}",
|
|
66
|
+
"{{ replyCount }} Replies": "{{ replyCount }} Respuestas",
|
|
67
|
+
"{{ replyCount }} Thread Replies": "{{ replyCount }} respuestas de hilo",
|
|
68
|
+
"{{ user }} is typing": "{{ user }} está escribiendo",
|
|
69
|
+
"Select More Photos": "Seleccionar más fotos",
|
|
70
|
+
"🏙 Attachment...": "🏙 Adjunto...",
|
|
71
|
+
"Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "El archivo supera el tamaño máximo permitido. Por favor, selecciona un archivo menor a {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB."
|
|
72
|
+
}
|
package/src/i18n/fr.json
CHANGED
|
@@ -2,70 +2,70 @@
|
|
|
2
2
|
"1 Reply": "1 Réponse",
|
|
3
3
|
"1 Thread Reply": "Réponse à 1 fil",
|
|
4
4
|
"Allow access to your Gallery": "Autoriser l'accès à votre galerie",
|
|
5
|
-
"Also send to channel": "
|
|
6
|
-
"Are you sure you want to permanently delete this message?": "
|
|
7
|
-
"Block User": "
|
|
8
|
-
"Cancel": "
|
|
9
|
-
"Cannot Flag Message": "
|
|
10
|
-
"Copy Message": "
|
|
11
|
-
"Delete": "
|
|
12
|
-
"Delete Message": "
|
|
13
|
-
"Do you want to send a copy of this message to a moderator for further investigation?": "
|
|
14
|
-
"Edit Message": "
|
|
15
|
-
"Editing Message": "
|
|
16
|
-
"Emoji matching": "
|
|
17
|
-
"Empty message...": "
|
|
18
|
-
"Error loading": "
|
|
19
|
-
"Error loading channel list...": "
|
|
20
|
-
"Error loading messages for this channel...": "
|
|
21
|
-
"Error while loading, please reload/refresh": "
|
|
22
|
-
"File type not supported": "
|
|
23
|
-
"Flag": "
|
|
24
|
-
"Flag Message": "
|
|
25
|
-
"Flag action failed either due to a network issue or the message is already flagged": "
|
|
26
|
-
"Instant Commands": "
|
|
27
|
-
"Links are disabled": "
|
|
28
|
-
"Loading channels...": "
|
|
29
|
-
"Loading messages...": "
|
|
30
|
-
"Loading...": "
|
|
31
|
-
"Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "
|
|
5
|
+
"Also send to channel": "",
|
|
6
|
+
"Are you sure you want to permanently delete this message?": "",
|
|
7
|
+
"Block User": "",
|
|
8
|
+
"Cancel": "",
|
|
9
|
+
"Cannot Flag Message": "",
|
|
10
|
+
"Copy Message": "",
|
|
11
|
+
"Delete": "",
|
|
12
|
+
"Delete Message": "",
|
|
13
|
+
"Do you want to send a copy of this message to a moderator for further investigation?": "",
|
|
14
|
+
"Edit Message": "",
|
|
15
|
+
"Editing Message": "",
|
|
16
|
+
"Emoji matching": "",
|
|
17
|
+
"Empty message...": "",
|
|
18
|
+
"Error loading": "",
|
|
19
|
+
"Error loading channel list...": "",
|
|
20
|
+
"Error loading messages for this channel...": "",
|
|
21
|
+
"Error while loading, please reload/refresh": "",
|
|
22
|
+
"File type not supported": "",
|
|
23
|
+
"Flag": "",
|
|
24
|
+
"Flag Message": "",
|
|
25
|
+
"Flag action failed either due to a network issue or the message is already flagged": "",
|
|
26
|
+
"Instant Commands": "",
|
|
27
|
+
"Links are disabled": "",
|
|
28
|
+
"Loading channels...": "",
|
|
29
|
+
"Loading messages...": "",
|
|
30
|
+
"Loading...": "",
|
|
31
|
+
"Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
|
|
32
32
|
"Message Reactions": "Réactions aux messages",
|
|
33
|
-
"Message deleted": "
|
|
34
|
-
"Message flagged": "
|
|
35
|
-
"Mute User": "
|
|
36
|
-
"Not supported": "
|
|
37
|
-
"Nothing yet...": "
|
|
38
|
-
"Ok": "
|
|
33
|
+
"Message deleted": "",
|
|
34
|
+
"Message flagged": "",
|
|
35
|
+
"Mute User": "",
|
|
36
|
+
"Not supported": "",
|
|
37
|
+
"Nothing yet...": "",
|
|
38
|
+
"Ok": "",
|
|
39
39
|
"Only visible to you": "Seulement visible par vous",
|
|
40
40
|
"Photo": "Photo",
|
|
41
41
|
"Photos and Videos": "Photos et vidéos",
|
|
42
|
-
"Pin to Conversation": "
|
|
42
|
+
"Pin to Conversation": "",
|
|
43
43
|
"Pinned by": "Épinglé par",
|
|
44
44
|
"Please enable access to your photos and videos so you can share them.": "Veuillez autoriser l'accès à vos photos et vidéos afin de pouvoir les partager.",
|
|
45
|
-
"Please select a channel first": "
|
|
46
|
-
"Reconnecting...": "
|
|
47
|
-
"Reply": "
|
|
48
|
-
"Reply to Message": "
|
|
49
|
-
"Resend": "
|
|
50
|
-
"Search GIFs": "
|
|
45
|
+
"Please select a channel first": "",
|
|
46
|
+
"Reconnecting...": "",
|
|
47
|
+
"Reply": "",
|
|
48
|
+
"Reply to Message": "",
|
|
49
|
+
"Resend": "",
|
|
50
|
+
"Search GIFs": "",
|
|
51
51
|
"Select More Photos": "Sélectionner plus de photos",
|
|
52
|
-
"Send a message": "
|
|
53
|
-
"Sending links is not allowed in this conversation": "
|
|
54
|
-
"Slow mode ON": "
|
|
55
|
-
"The message has been reported to a moderator.": "
|
|
56
|
-
"Thread Reply": "
|
|
57
|
-
"Unblock User": "
|
|
52
|
+
"Send a message": "",
|
|
53
|
+
"Sending links is not allowed in this conversation": "",
|
|
54
|
+
"Slow mode ON": "",
|
|
55
|
+
"The message has been reported to a moderator.": "",
|
|
56
|
+
"Thread Reply": "",
|
|
57
|
+
"Unblock User": "",
|
|
58
58
|
"Unknown User": "Utilisateur inconnu",
|
|
59
|
-
"Unmute User": "
|
|
60
|
-
"Unpin from Conversation": "
|
|
59
|
+
"Unmute User": "",
|
|
60
|
+
"Unpin from Conversation": "",
|
|
61
61
|
"Unread Messages": "Messages non lus",
|
|
62
62
|
"Video": "Vidéo",
|
|
63
|
-
"You": "
|
|
64
|
-
"You can't send messages in this channel": "
|
|
63
|
+
"You": "",
|
|
64
|
+
"You can't send messages in this channel": "",
|
|
65
65
|
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} et {{ nonSelfUserLength }} autres sont en train d'écrire",
|
|
66
66
|
"{{ index }} of {{ photoLength }}": "{{ index }} sur {{ photoLength }}",
|
|
67
67
|
"{{ replyCount }} Replies": "{{ replyCount }} Réponses",
|
|
68
68
|
"{{ replyCount }} Thread Replies": "{{replyCount}} Réponses à la discussion",
|
|
69
69
|
"{{ user }} is typing": "{{ user }} est en train d'écrire",
|
|
70
|
-
"🏙 Attachment...": "
|
|
70
|
+
"🏙 Attachment...": ""
|
|
71
71
|
}
|