Skip to content

Commit

Permalink
Add new localization keys and update existing for local strings for SC
Browse files Browse the repository at this point in the history
Update local localization strings file with new keys and update existing according to design.

MOB-3678
  • Loading branch information
igorkravchenko committed Oct 16, 2024
1 parent 548ecbc commit cdf1e06
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 18 deletions.
50 changes: 38 additions & 12 deletions GliaWidgets/Localization.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand All @@ -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.
Expand All @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
20 changes: 14 additions & 6 deletions GliaWidgets/Resources/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -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.";
Expand Down Expand Up @@ -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";
Expand All @@ -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";

0 comments on commit cdf1e06

Please sign in to comment.