From f92c191ed5e0f9bd017fae6f06920954fe57d121 Mon Sep 17 00:00:00 2001 From: ggurdin <46800240+ggurdin@users.noreply.github.com> Date: Thu, 1 May 2025 16:09:14 -0400 Subject: [PATCH] chore: update knock copy to say space instead of chat (#2612) --- assets/l10n/intl_en.arb | 10 +++++++++- .../user_bottom_sheet/user_bottom_sheet_view.dart | 11 +++++++++-- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/assets/l10n/intl_en.arb b/assets/l10n/intl_en.arb index 541e2b8a7..1985e3d48 100644 --- a/assets/l10n/intl_en.arb +++ b/assets/l10n/intl_en.arb @@ -4878,5 +4878,13 @@ "newGrammar": "New grammar concepts", "congratulationsOnReaching": "Congratulations on reaching ", "seeDetails": "See Details", - "choosePracticeMode": "Click on one of the buttons above to start a practice activity" + "choosePracticeMode": "Click on one of the buttons above to start a practice activity", + "userWouldLikeToChangeTheSpace": "{user} would like to join the space.", + "@userWouldLikeToChangeTheSpace": { + "placeholders": { + "user": { + "type": "String" + } + } + } } \ No newline at end of file diff --git a/lib/pages/user_bottom_sheet/user_bottom_sheet_view.dart b/lib/pages/user_bottom_sheet/user_bottom_sheet_view.dart index f70e0a71d..9727f8096 100644 --- a/lib/pages/user_bottom_sheet/user_bottom_sheet_view.dart +++ b/lib/pages/user_bottom_sheet/user_bottom_sheet_view.dart @@ -75,8 +75,15 @@ class UserBottomSheetView extends StatelessWidget { title: Padding( padding: const EdgeInsets.only(bottom: 12.0), child: Text( - L10n.of(context) - .userWouldLikeToChangeTheChat(displayname), + // #Pangea + // L10n.of(context) + // .userWouldLikeToChangeTheChat(displayname), + (user?.room.isSpace ?? false) + ? L10n.of(context) + .userWouldLikeToChangeTheSpace(displayname) + : L10n.of(context) + .userWouldLikeToChangeTheChat(displayname), + // Pangea# ), ), subtitle: Row(