Skip to content

Commit 6c2a937

Browse files
Updated UIKit to v6.2.2
1 parent 579bfc7 commit 6c2a937

File tree

48 files changed

+487
-96
lines changed

Some content is hidden

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

48 files changed

+487
-96
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@cometchat/chat-uikit-react",
3-
"version": "6.2.1",
3+
"version": "6.2.2",
44
"description": "Ready-to-use Chat UI Components for React(Javascript/Web)",
55
"author": "CometChat",
66
"exports": {

sample-app/CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
## [6.2.2] - 04-09-2025
2+
3+
## New
4+
- None
5+
6+
## Enhancements
7+
- None
8+
9+
## Fixes
10+
- Fixed missing **localization** in the sample app for **call log details** and the **create group** components.
11+
12+
## Deprecations
13+
- None
14+
15+
## Removals
16+
- None
17+
118
## [6.2.1] - 22-08-2025
219

320
## New

sample-app/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"name": "sample-app",
3-
"version": "6.2.1",
3+
"version": "6.2.2",
44
"description": "React App made using CometChat React v6 UI Kit.",
55
"author": "CometChat",
66
"private": true,
77
"dependencies": {
8-
"@cometchat/calls-sdk-javascript": "^4.0.11",
8+
"@cometchat/calls-sdk-javascript": "^4.1.0",
99
"@cometchat/chat-sdk-javascript": "^4.1.1",
10-
"@cometchat/chat-uikit-react": "~6.2.1",
10+
"@cometchat/chat-uikit-react": "~6.2.2",
1111
"react": "18.2.0",
1212
"react-dom": "18.2.0",
1313
"react-router-dom": "6.14.2",

sample-app/src/components/CometChatCallLog/CometChatCallLogDetails.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,18 @@ export const CometChatCallDetails = (props: { selectedItem: any, onBack?: () =>
2727
setSubtitleText("")
2828
return;
2929
}
30-
setSubtitleText(user?.getStatus());
30+
setSubtitleText(getLocalizedString(`call_logs_user_status_${user?.getStatus().toLowerCase()}`));
3131
CometChat.addUserListener(
3232
userListenerId,
3333
new CometChat.UserListener({
3434
onUserOnline: (onlineUser: CometChat.User) => {
3535
if (user?.getUid() === onlineUser.getUid()) {
36-
setSubtitleText(onlineUser?.getStatus())
36+
setSubtitleText(getLocalizedString(`call_logs_user_status_online`));
3737
}
3838
},
3939
onUserOffline: (offlineUser: CometChat.User) => {
4040
if (user?.getUid() === offlineUser?.getUid()) {
41-
setSubtitleText(offlineUser?.getStatus())
41+
setSubtitleText(getLocalizedString(`call_logs_user_status_offline`));
4242
}
4343
},
4444
})

sample-app/src/components/CometChatCreateGroup/CometChatCreateGroup.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ const CometChatCreateGroup = ({ setShowCreateGroup, onGroupCreated = () => { } }
6969
<input
7070
type="text"
7171
className='cometchat-create-group__input'
72-
placeholder='Enter the group name'
72+
placeholder={getLocalizedString("create_group_name_placeholder")}
7373
value={groupName}
7474
onChange={(e) => setGroupName(e.target.value)}
7575
required
@@ -82,7 +82,7 @@ const CometChatCreateGroup = ({ setShowCreateGroup, onGroupCreated = () => { } }
8282
autoComplete="new-password"
8383
type="password"
8484
className='cometchat-create-group__input'
85-
placeholder='Enter a password'
85+
placeholder={getLocalizedString("create_group_password_placeholder")}
8686
value={groupPassword}
8787
onChange={(e) => setGroupPassword(e.target.value)}
8888
required

sample-app/src/components/CometChatHome/CometChatHome.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ function CometChatHome(props: { theme?: string }) {
548548
setShowNewChat(false);
549549

550550
}} />
551-
<div className='cometchat-new-chat-view__header-title'>New Chat</div>
551+
<div className='cometchat-new-chat-view__header-title'>{getLocalizedString('new_chat_title')}</div>
552552
</div>
553553

554554
{/* Tabs for User and Group */}

sample-app/src/locales/de/de.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
"create_group_public": "Öffentlich",
2020
"create_group_private": "Privat",
2121
"create_group_password": "Passwort",
22+
"create_group_name_placeholder": "Gruppennamen eingeben",
23+
"create_group_password_placeholder": "Passwort eingeben",
2224
"name": "Name",
2325
"create_group": "Gruppe erstellen",
2426
"ownership_transferred_successfully": "Gruppenbesitz erfolgreich übertragen.",
@@ -61,6 +63,9 @@
6163
"no_recording_available": "Keine Aufnahme verfügbar",
6264
"new_group": "Neue Gruppe",
6365
"call_details": "Anrufdetails",
66+
"call_logs_user_status_online": "Online",
67+
"call_logs_user_status_offline": "Offline",
68+
"new_chat_title": "Neuer Chat",
6469
"unban": "Entsperren",
6570
"enter_your_password": "Gib dein Passwort ein",
6671
"user_group_empty_state": "Wähle einen Benutzer oder eine Gruppe aus der linken Seitenleiste aus und starte dein Gespräch.",

sample-app/src/locales/en-GB/en-GB.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
"create_group_public": "Public",
2020
"create_group_private": "Private",
2121
"create_group_password": "Password",
22+
"create_group_name_placeholder": "Enter the group name",
23+
"create_group_password_placeholder": "Enter a password",
2224
"name": "Name",
2325
"create_group": "Create Group",
2426
"ownership_transferred_successfully": "Group ownership transferred successfully.",
@@ -61,6 +63,9 @@
6163
"no_recording_available": "No recording available",
6264
"new_group": "New Group",
6365
"call_details": "Call Details",
66+
"call_logs_user_status_online": "Online",
67+
"call_logs_user_status_offline": "Offline",
68+
"new_chat_title": "New Chat",
6469
"unban": "Unban",
6570
"enter_your_password": "Enter your password",
6671
"user_group_empty_state": "Pick a user or group from the left sidebar call list, and start your conversation.",

sample-app/src/locales/en-US/en-US.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
"create_group_public": "Public",
2020
"create_group_private": "Private",
2121
"create_group_password": "Password",
22+
"create_group_name_placeholder": "Enter the group name",
23+
"create_group_password_placeholder": "Enter a password",
2224
"name": "Name",
2325
"create_group": "Create Group",
2426
"ownership_transferred_successfully": "Group ownership transferred successfully.",
@@ -61,6 +63,9 @@
6163
"no_recording_available": "No recording available",
6264
"new_group": "New Group",
6365
"call_details": "Call Details",
66+
"call_logs_user_status_online": "Online",
67+
"call_logs_user_status_offline": "Offline",
68+
"new_chat_title": "New Chat",
6469
"unban": "Unban",
6570
"enter_your_password": "Enter your password",
6671
"user_group_empty_state": "Pick a user or group from the left sidebar call list, and start your conversation.",

sample-app/src/locales/es/es.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
"create_group_public": "Público",
2020
"create_group_private": "Privado",
2121
"create_group_password": "Contraseña",
22+
"create_group_name_placeholder": "Introduce el nombre del grupo",
23+
"create_group_password_placeholder": "Introduce una contraseña",
2224
"name": "Nombre",
2325
"create_group": "Crear grupo",
2426
"ownership_transferred_successfully": "Propiedad del grupo transferida exitosamente.",
@@ -61,6 +63,9 @@
6163
"no_recording_available": "No hay grabaciones disponibles",
6264
"new_group": "Nuevo grupo",
6365
"call_details": "Detalles de la llamada",
66+
"call_logs_user_status_online": "En línea",
67+
"call_logs_user_status_offline": "Desconectado",
68+
"new_chat_title": "Nuevo Chat",
6469
"unban": "Desbanear",
6570
"enter_your_password": "Ingresa tu contraseña",
6671
"user_group_empty_state": "Selecciona un usuario o grupo de la lista de llamadas en la barra lateral izquierda, y comienza tu conversación.",

0 commit comments

Comments
 (0)