From ea36ba4a1767c3b84a077d37b303a6b17bab90a0 Mon Sep 17 00:00:00 2001 From: ggurdin <46800240+ggurdin@users.noreply.github.com> Date: Tue, 1 Apr 2025 13:05:21 -0400 Subject: [PATCH] chore: move message reporting copy to localizations file (#2303) --- assets/l10n/intl_en.arb | 3 ++- lib/pangea/events/utils/report_message.dart | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/assets/l10n/intl_en.arb b/assets/l10n/intl_en.arb index 506938235..7d5f0b58a 100644 --- a/assets/l10n/intl_en.arb +++ b/assets/l10n/intl_en.arb @@ -4848,5 +4848,6 @@ "exploreMore": "Explore more", "wordFocusListeningMultipleChoice": "Which audio matches the word?", "createActivity": "Create activity", - "startChat": "Start a chat" + "startChat": "Start a chat", + "translationProblem": "Translation problem" } \ No newline at end of file diff --git a/lib/pangea/events/utils/report_message.dart b/lib/pangea/events/utils/report_message.dart index f3c5d17c7..4243f7f25 100644 --- a/lib/pangea/events/utils/report_message.dart +++ b/lib/pangea/events/utils/report_message.dart @@ -31,7 +31,7 @@ void reportEvent( final score = await showModalActionPopup( context: context, title: L10n.of(context).reportMessage, - message: "Why do you want to report this message?", + message: L10n.of(context).whyDoYouWantToReportThis, cancelLabel: L10n.of(context).cancel, actions: [ AdaptiveModalAction( @@ -40,11 +40,11 @@ void reportEvent( ), AdaptiveModalAction( value: 2, - label: "Translation problem", + label: L10n.of(context).translationProblem, ), AdaptiveModalAction( value: 3, - label: "Other", + label: L10n.of(context).other, ), ], );