From cac42b400c19ba7e1b78c643d3cfd5706488f1c7 Mon Sep 17 00:00:00 2001 From: Igor Kravchenko Date: Mon, 14 Oct 2024 18:26:44 +0300 Subject: [PATCH] Add new localization keys and update existing for local strings for SC Update local localization strings file with new keys and update existing according to design. MOB-3678 --- GliaWidgets/Localization.swift | 50 ++++++++++++++----- .../Resources/en.lproj/Localizable.strings | 20 +++++--- 2 files changed, 52 insertions(+), 18 deletions(-) diff --git a/GliaWidgets/Localization.swift b/GliaWidgets/Localization.swift index 55077fa54..62b48e310 100644 --- a/GliaWidgets/Localization.swift +++ b/GliaWidgets/Localization.swift @@ -432,8 +432,8 @@ internal enum Localization { internal static var message: String { Localization.tr("Localizable", "engagement.queue_wait.message", fallback: "You can continue browsing and we will connect you automatically.") } } internal enum SecureMessaging { - /// Messaging - internal static var title: String { Localization.tr("Localizable", "engagement.secure_messaging.title", fallback: "Messaging") } + /// Secure Messaging + internal static var title: String { Localization.tr("Localizable", "engagement.secure_messaging.title", fallback: "Secure Messaging") } } internal enum Video { /// Video @@ -563,11 +563,11 @@ internal enum Localization { } } internal enum MessageCenter { - /// Messaging - internal static var header: String { Localization.tr("Localizable", "message_center.header", fallback: "Messaging") } + /// Secure Messaging + internal static var header: String { Localization.tr("Localizable", "message_center.header", fallback: "Secure Messaging") } internal enum Confirmation { - /// Your message has been sent. We will get back to you within 48 hours. - internal static var subtitle: String { Localization.tr("Localizable", "message_center.confirmation.subtitle", fallback: "Your message has been sent. We will get back to you within 48 hours.") } + /// Your message has been sent. We will get back to you within 1 business day. + internal static var subtitle: String { Localization.tr("Localizable", "message_center.confirmation.subtitle", fallback: "Your message has been sent. We will get back to you within 1 business day.") } internal enum CheckMessages { internal enum Accessibility { /// Navigates you to the chat transcript. @@ -592,10 +592,10 @@ internal enum Localization { internal static var checkMessages: String { Localization.tr("Localizable", "message_center.welcome.check_messages", fallback: "Check messages") } /// Your message internal static var messageTitle: String { Localization.tr("Localizable", "message_center.welcome.message_title", fallback: "Your message") } - /// Send a message and we will get back to you within 48 hours. - internal static var subtitle: String { Localization.tr("Localizable", "message_center.welcome.subtitle", fallback: "Send a message and we will get back to you within 48 hours.") } - /// Welcome to Message Center - internal static var title: String { Localization.tr("Localizable", "message_center.welcome.title", fallback: "Welcome to Message Center") } + /// Send a message and we will get back to you within 1 business day. + internal static var subtitle: String { Localization.tr("Localizable", "message_center.welcome.subtitle", fallback: "Send a message and we will get back to you within 1 business day.") } + /// Welcome to Secure Messaging + internal static var title: String { Localization.tr("Localizable", "message_center.welcome.title", fallback: "Welcome to Secure Messaging") } internal enum CheckMessages { internal enum Accessibility { /// Navigates you to the chat transcript. @@ -611,8 +611,8 @@ internal enum Localization { } } internal enum MessageInput { - /// Enter your message - internal static var placeholder: String { Localization.tr("Localizable", "message_center.welcome.message_input.placeholder", fallback: "Enter your message") } + /// Enter message + internal static var placeholder: String { Localization.tr("Localizable", "message_center.welcome.message_input.placeholder", fallback: "Enter message") } } internal enum MessageLength { /// The message cannot exceed 10,000 characters. @@ -644,6 +644,32 @@ internal enum Localization { } } } + internal enum SecureMessaging { + internal enum Chat { + internal enum Banner { + /// Secure messaging has an expected response time of 1 business day. + internal static var bottom: String { Localization.tr("Localizable", "secure_messaging.chat.banner.bottom", fallback: "Secure messaging has an expected response time of 1 business day.") } + /// Need live support? + internal static var top: String { Localization.tr("Localizable", "secure_messaging.chat.banner.top", fallback: "Need live support?") } + } + internal enum LeaveCurrentConversation { + /// You have an ongoing conversation. Starting a new conversation before ongoing ones are resolved may lead to our agents overlooking your current query. + internal static var message: String { Localization.tr("Localizable", "secure_messaging.chat.leave_current_conversation.message", fallback: "You have an ongoing conversation. Starting a new conversation before ongoing ones are resolved may lead to our agents overlooking your current query.") } + /// Leave Current Conversation? + internal static var title: String { Localization.tr("Localizable", "secure_messaging.chat.leave_current_conversation.title", fallback: "Leave Current Conversation?") } + internal enum Button { + /// Leave + internal static var negative: String { Localization.tr("Localizable", "secure_messaging.chat.leave_current_conversation.button.negative", fallback: "Leave") } + /// Stay + internal static var positive: String { Localization.tr("Localizable", "secure_messaging.chat.leave_current_conversation.button.positive", fallback: "Stay") } + } + } + internal enum Unavailable { + /// Sending messages is currently not available. + internal static var message: String { Localization.tr("Localizable", "secure_messaging.chat.unavailable.message", fallback: "Sending messages is currently not available.") } + } + } + } internal enum Survey { internal enum Action { /// Please provide an answer. diff --git a/GliaWidgets/Resources/en.lproj/Localizable.strings b/GliaWidgets/Resources/en.lproj/Localizable.strings index 903861ead..871f495d6 100644 --- a/GliaWidgets/Resources/en.lproj/Localizable.strings +++ b/GliaWidgets/Resources/en.lproj/Localizable.strings @@ -163,7 +163,7 @@ "engagement.queue.transferring" = "Transferring"; "ios.engagement.connection_screen.video_notice" = "(By default, your video will be turned off)"; "engagement.queue_wait.message" = "You can continue browsing and we will connect you automatically."; -"engagement.secure_messaging.title" = "Messaging"; +"engagement.secure_messaging.title" = "Secure Messaging"; "error.general" = "Something went wrong."; "error.internal" = "Something went wrong."; "error.unexpected" = "Something went wrong."; @@ -203,20 +203,20 @@ "message_center.welcome.check_messages" = "Check messages"; "message_center.confirmation.check_messages.accessibility.hint" = "Navigates you to the chat transcript."; "message_center.confirmation.check_messages.accessibility.label" = "Check messages"; -"message_center.confirmation.subtitle" = "Your message has been sent. We will get back to you within 48 hours."; -"message_center.header" = "Messaging"; +"message_center.confirmation.subtitle" = "Your message has been sent. We will get back to you within 1 business day."; +"message_center.header" = "Secure Messaging"; "message_center.not_authenticated.message" = "We could not verify your authentication status."; "message_center.unavailable.message" = "The Message Center is currently unavailable. Please try again later."; "message_center.unavailable.title" = "Message Center Unavailable"; -"message_center.welcome.subtitle" = "Send a message and we will get back to you within 48 hours."; +"message_center.welcome.subtitle" = "Send a message and we will get back to you within 1 business day."; "message_center.welcome.check_messages.accessibility.hint" = "Navigates you to the chat transcript."; "message_center.welcome.file_picker.accessibility.hint" = "Opens the file picker to attach media."; "message_center.welcome.file_picker.accessibility.label" = "File picker"; "message_center.welcome.message_length.error" = "The message cannot exceed 10,000 characters."; -"message_center.welcome.message_input.placeholder" = "Enter your message"; +"message_center.welcome.message_input.placeholder" = "Enter message"; "message_center.welcome.message_title" = "Your message"; "message_center.welcome.send.accessibility.hint" = "Sends a secure message."; -"message_center.welcome.title" = "Welcome to Message Center"; +"message_center.welcome.title" = "Welcome to Secure Messaging"; "screen_sharing.visitor_screen.disclaimer.title" = "You are about to share your screen"; "screen_sharing.visitor_screen.end.title" = "End Screen Sharing"; "screen_sharing.visitor_screen.end.accessibility.hint" = "Ends screen sharing"; @@ -241,3 +241,11 @@ "engagement.confirm.link2.accessibility.label" = "Privacy Policies"; "live_observation.indicator.message" = "Your app screen is visible to the operator."; + +"secure_messaging.chat.banner.top" = "Need live support?"; +"secure_messaging.chat.banner.bottom" = "Secure messaging has an expected response time of 1 business day."; +"secure_messaging.chat.unavailable.message" = "Sending messages is currently not available."; +"secure_messaging.chat.leave_current_conversation.title" = "Leave Current Conversation?"; +"secure_messaging.chat.leave_current_conversation.message" = "You have an ongoing conversation. Starting a new conversation before ongoing ones are resolved may lead to our agents overlooking your current query."; +"secure_messaging.chat.leave_current_conversation.button.positive" = "Stay"; +"secure_messaging.chat.leave_current_conversation.button.negative" = "Leave";