Skip to content

Commit 17378ca

Browse files
committed
feat: bump i18n to latest and do all necessary changes in the SDK to support it
1 parent 64b7a49 commit 17378ca

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+105
-109
lines changed

examples/SampleApp/yarn.lock

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,7 @@
790790
dependencies:
791791
regenerator-runtime "^0.14.0"
792792

793-
"@babel/runtime@^7.27.6":
793+
"@babel/runtime@^7.27.1", "@babel/runtime@^7.27.6":
794794
version "7.27.6"
795795
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.27.6.tgz#ec4070a04d76bae8ddbb10770ba55714a417b7c6"
796796
integrity sha512-vbavdySgbTTrmFE+EsiqUTzlOr5bzlnJtUv9PynGCAKvfQqjIXbvFdumPM/GxMDfyuGMJaJAU6TO4zc1Jf1i8Q==
@@ -5124,6 +5124,13 @@ i18next@^21.10.0:
51245124
dependencies:
51255125
"@babel/runtime" "^7.17.2"
51265126

5127+
i18next@^25.2.1:
5128+
version "25.2.1"
5129+
resolved "https://registry.yarnpkg.com/i18next/-/i18next-25.2.1.tgz#23cf8794904f551f577558d93c84b0fb6cd489a2"
5130+
integrity sha512-+UoXK5wh+VlE1Zy5p6MjcvctHXAhRwQKCxiJD8noKZzIXmnAX8gdHX5fLPA3MEVxEN4vbZkQFy8N0LyD9tUqPw==
5131+
dependencies:
5132+
"@babel/runtime" "^7.27.1"
5133+
51275134
51285135
version "0.4.24"
51295136
resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b"

package/expo-package/yarn.lock

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1058,13 +1058,18 @@
10581058
"@babel/plugin-transform-modules-commonjs" "^7.24.7"
10591059
"@babel/plugin-transform-typescript" "^7.24.7"
10601060

1061-
"@babel/runtime@^7.17.2", "@babel/runtime@^7.20.0":
1061+
"@babel/runtime@^7.20.0":
10621062
version "7.24.7"
10631063
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.24.7.tgz#f4f0d5530e8dbdf59b3451b9b3e594b6ba082e12"
10641064
integrity sha512-UwgBRMjJP+xv857DCngvqXI3Iq6J4v0wXmwc6sapg+zyhbwmQX67LUEFrkK5tbyJ30jGuG3ZvWpBiB9LCy1kWw==
10651065
dependencies:
10661066
regenerator-runtime "^0.14.0"
10671067

1068+
"@babel/runtime@^7.27.1":
1069+
version "7.27.6"
1070+
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.27.6.tgz#ec4070a04d76bae8ddbb10770ba55714a417b7c6"
1071+
integrity sha512-vbavdySgbTTrmFE+EsiqUTzlOr5bzlnJtUv9PynGCAKvfQqjIXbvFdumPM/GxMDfyuGMJaJAU6TO4zc1Jf1i8Q==
1072+
10681073
"@babel/runtime@^7.8.4":
10691074
version "7.26.9"
10701075
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.26.9.tgz#aa4c6facc65b9cb3f87d75125ffd47781b475433"
@@ -2699,12 +2704,12 @@ [email protected]:
26992704
statuses "2.0.1"
27002705
toidentifier "1.0.1"
27012706

2702-
i18next@^21.10.0:
2703-
version "21.10.0"
2704-
resolved "https://registry.yarnpkg.com/i18next/-/i18next-21.10.0.tgz#85429af55fdca4858345d0e16b584ec29520197d"
2705-
integrity sha512-YeuIBmFsGjUfO3qBmMOc0rQaun4mIpGKET5WDwvu8lU7gvwpcariZLNtL0Fzj+zazcHUrlXHiptcFhBMFaxzfg==
2707+
i18next@^25.2.1:
2708+
version "25.2.1"
2709+
resolved "https://registry.yarnpkg.com/i18next/-/i18next-25.2.1.tgz#23cf8794904f551f577558d93c84b0fb6cd489a2"
2710+
integrity sha512-+UoXK5wh+VlE1Zy5p6MjcvctHXAhRwQKCxiJD8noKZzIXmnAX8gdHX5fLPA3MEVxEN4vbZkQFy8N0LyD9tUqPw==
27062711
dependencies:
2707-
"@babel/runtime" "^7.17.2"
2712+
"@babel/runtime" "^7.27.1"
27082713

27092714
ieee754@^1.1.13:
27102715
version "1.2.1"

package/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"@ungap/structured-clone": "^1.3.0",
7171
"dayjs": "1.11.13",
7272
"emoji-regex": "^10.4.0",
73-
"i18next": "^21.10.0",
73+
"i18next": "^25.2.1",
7474
"intl-pluralrules": "^2.0.1",
7575
"linkifyjs": "^4.3.1",
7676
"lodash-es": "4.17.21",

package/src/components/Attachment/ImageLoadingFailedIndicator.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export const ImageLoadingFailedIndicator = (props: ImageLoadingFailedIndicatorPr
4949
style={styles.warningIconStyle}
5050
width={WARNING_ICON_SIZE}
5151
/>
52-
<Text style={[styles.errorText, { color: white }]}>{t<string>('Error loading')}</Text>
52+
<Text style={[styles.errorText, { color: white }]}>{t('Error loading')}</Text>
5353
</View>
5454
</View>
5555
);

package/src/components/AttachmentPicker/components/AttachmentPickerError.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,14 @@ export const AttachmentPickerError = (props: AttachmentPickerErrorProps) => {
7878
<AttachmentPickerErrorImage />
7979
<Text style={[styles.errorText, { color: grey }, errorText]}>
8080
{attachmentPickerErrorText ||
81-
t<string>('Please enable access to your photos and videos so you can share them.')}
81+
t('Please enable access to your photos and videos so you can share them.')}
8282
</Text>
8383
<Text
8484
onPress={openSettings}
8585
style={[styles.errorButtonText, { color: accent_blue }, errorButtonText]}
8686
suppressHighlighting
8787
>
88-
{attachmentPickerErrorButtonText || t<string>('Allow access to your Gallery')}
88+
{attachmentPickerErrorButtonText || t('Allow access to your Gallery')}
8989
</Text>
9090
</View>
9191
);

package/src/components/AttachmentPicker/components/AttachmentPickerIOSSelectMorePhotos.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const AttachmentPickerIOSSelectMorePhotos = () => {
2222
onPress={NativeHandlers.iOS14RefreshGallerySelection}
2323
style={[styles.container, { backgroundColor: white }]}
2424
>
25-
<Text style={[styles.text, { color: accent_blue }]}>{t<string>('Select More Photos')}</Text>
25+
<Text style={[styles.text, { color: accent_blue }]}>{t('Select More Photos')}</Text>
2626
</Pressable>
2727
);
2828
};

package/src/components/Channel/Channel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1943,7 +1943,7 @@ const ChannelWithContext = (props: PropsWithChildren<ChannelPropsWithContext>) =
19431943
if (!channel?.cid || !channel.watch) {
19441944
return (
19451945
<Text style={[styles.selectChannel, { color: black }, selectChannel]} testID='no-channel'>
1946-
{t<string>('Please select a channel first')}
1946+
{t('Please select a channel first')}
19471947
</Text>
19481948
);
19491949
}

package/src/components/ChannelList/ChannelListHeaderErrorIndicator.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const ChannelListHeaderErrorIndicator = ({ onPress = () => null }: Header
3636
style={[styles.container, { backgroundColor: `${grey_dark}E6` }, container]}
3737
>
3838
<Text style={[styles.errorText, { color: white }, errorText]} testID='channel-loading-error'>
39-
{t<string>('Error while loading, please reload/refresh')}
39+
{t('Error while loading, please reload/refresh')}
4040
</Text>
4141
</TouchableOpacity>
4242
);

package/src/components/ChannelList/ChannelListHeaderNetworkDownIndicator.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@ export const ChannelListHeaderNetworkDownIndicator = () => {
3030
style={[styles.container, { backgroundColor: `${grey_dark}E6` }, container]}
3131
testID='network-down-indicator'
3232
>
33-
<Text style={[styles.errorText, { color: white }, errorText]}>
34-
{t<string>('Reconnecting...')}
35-
</Text>
33+
<Text style={[styles.errorText, { color: white }, errorText]}>{t('Reconnecting...')}</Text>
3634
</View>
3735
);
3836
};

package/src/components/ImageGallery/components/ImageGalleryFooter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ export const ImageGalleryFooterWithContext = (props: ImageGalleryFooterPropsWith
204204
) : (
205205
<View style={[styles.centerContainer, centerContainer]}>
206206
<Text style={[styles.imageCountText, { color: black }, imageCountText]}>
207-
{t<string>('{{ index }} of {{ photoLength }}', {
207+
{t('{{ index }} of {{ photoLength }}', {
208208
index: photoLength - selectedIndex,
209209
photoLength,
210210
})}

0 commit comments

Comments
 (0)