Skip to content

Commit

Permalink
refactor: Wording update for chat and add notification #2867
Browse files Browse the repository at this point in the history
  • Loading branch information
bibash28 committed Sep 4, 2024
1 parent a22865f commit 33e2c38
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'package:altme/app/app.dart';
import 'package:altme/dashboard/dashboard.dart';
import 'package:altme/l10n/l10n.dart';
import 'package:altme/matrix_notification/matrix_notification.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';

Expand Down Expand Up @@ -75,7 +76,7 @@ class HelpCenterView extends StatelessWidget {
const DrawerLogo(),
if (helpCenterOptions.displayChatSupport && isEnterprise) ...[
DrawerItem(
title: '${l10n.chatWith} $customChatSupportName',
title: l10n.chatRoom,
onTap: () {
Navigator.of(context).push<void>(
AltmeSupportChatPage.route(
Expand All @@ -85,6 +86,16 @@ class HelpCenterView extends StatelessWidget {
},
),
],
if (helpCenterOptions.displayNotification != null &&
helpCenterOptions.displayNotification! &&
isEnterprise) ...[
DrawerItem(
title: l10n.notificationRoom,
onTap: () {
Navigator.of(context).push<void>(NotificationPage.route());
},
),
],
if (helpCenterOptions.displayEmailSupport) ...[
DrawerItem(
title: l10n.sendAnEmail,
Expand Down
4 changes: 3 additions & 1 deletion lib/l10n/arb/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -1065,5 +1065,7 @@
"etherlinkProofMessage": "",
"notification": "Notification",
"notifications": "Notifications",
"notificationTitle": "Welcome to the Notifications!\nStay informed with important updates."
"notificationTitle": "Welcome to the Notifications!\nStay informed with important updates.",
"chatRoom": "Chat room",
"notificationRoom": "Notification room"
}
12 changes: 9 additions & 3 deletions lib/l10n/untranslated.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@
"etherlinkProofMessage",
"notification",
"notifications",
"notificationTitle"
"notificationTitle",
"chatRoom",
"notificationRoom"
],

"es": [
Expand Down Expand Up @@ -74,7 +76,9 @@
"etherlinkProofMessage",
"notification",
"notifications",
"notificationTitle"
"notificationTitle",
"chatRoom",
"notificationRoom"
],

"fr": [
Expand Down Expand Up @@ -118,6 +122,8 @@
"etherlinkProofMessage",
"notification",
"notifications",
"notificationTitle"
"notificationTitle",
"chatRoom",
"notificationRoom"
]
}

0 comments on commit 33e2c38

Please sign in to comment.