Newer
Older
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
/// Scan Code
public static let `left` = Localized.tr("Localizable", "scan.segmentedControl.left")
/// My Code
public static let `right` = Localized.tr("Localizable", "scan.segmentedControl.right")
}
public enum Status {
/// Place QR code inside frame to scan
public static let reading = Localized.tr("Localizable", "scan.status.reading")
/// Success
public static let success = Localized.tr("Localizable", "scan.status.success")
}
}
public enum Settings {
/// Advanced Settings
public static let advanced = Localized.tr("Localizable", "settings.advanced")
/// Chat Settings
public static let chat = Localized.tr("Localizable", "settings.chat")
/// Delete account
public static let delete = Localized.tr("Localizable", "settings.delete")
/// Disclosures
public static let disclosures = Localized.tr("Localizable", "settings.disclosures")
/// General Settings
public static let general = Localized.tr("Localizable", "settings.general")
/// Privacy policy
public static let privacyPolicy = Localized.tr("Localizable", "settings.privacyPolicy")
/// Settings
public static let title = Localized.tr("Localizable", "settings.title")
public enum Advanced {
/// Advanced Settings
public static let title = Localized.tr("Localizable", "settings.advanced.title")
public enum AccountBackup {
/// Account Backup
public static let title = Localized.tr("Localizable", "settings.advanced.accountBackup.title")
}
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
public enum Crashes {
/// Automatically sends anonymous reports containing crash data
public static let description = Localized.tr("Localizable", "settings.advanced.crashes.description")
/// Enable crash reporting
public static let title = Localized.tr("Localizable", "settings.advanced.crashes.title")
}
public enum Logs {
/// Record your logs to submit for debugging.
public static let description = Localized.tr("Localizable", "settings.advanced.logs.description")
/// Record logs
public static let title = Localized.tr("Localizable", "settings.advanced.logs.title")
}
}
public enum Biometrics {
/// Enable unlocking with your device biometrics.
public static let description = Localized.tr("Localizable", "settings.biometrics.description")
/// Biometric Authentication
public static let title = Localized.tr("Localizable", "settings.biometrics.title")
}
public enum Delete {
/// Cancel
public static let cancel = Localized.tr("Localizable", "settings.delete.cancel")
/// Confirm Delete
public static let delete = Localized.tr("Localizable", "settings.delete.delete")
/// Your username
public static let input = Localized.tr("Localizable", "settings.delete.input")
/// A deleted account cannot be recovered. The username associated with this account cannot be reused in the future.\n\nTo confirm your account deletion, type in your username.
public static let subtitle = Localized.tr("Localizable", "settings.delete.subtitle")
/// Delete Account
public static let title = Localized.tr("Localizable", "settings.delete.title")
public enum Info {
/// On deletion, all keys for your account are purged from your phone. This action will not notify your contacts. Your keys and any registered emails or phone numbers are removed from the user discovery system.
public static let subtitle = Localized.tr("Localizable", "settings.delete.info.subtitle")
/// Deleting Your Account
public static let title = Localized.tr("Localizable", "settings.delete.info.title")
}
}
public enum Drawer {
/// %@ will be opened using your default browser
public static func subtitle(_ p1: Any) -> String {
return Localized.tr("Localizable", "settings.drawer.subtitle", String(describing: p1))
}
/// Do you want to open %@?
public static func title(_ p1: Any) -> String {
return Localized.tr("Localizable", "settings.drawer.title", String(describing: p1))
}
}
public enum HideActiveApps {
/// Hide screen in recent apps list
public static let description = Localized.tr("Localizable", "settings.hideActiveApps.description")
/// Hide Screen
public static let title = Localized.tr("Localizable", "settings.hideActiveApps.title")
}
public enum IcognitoKeyboard {
/// While using the app, allow keyboard to use activity for predictive text.
public static let description = Localized.tr("Localizable", "settings.icognitoKeyboard.description")
/// Predictive Text
public static let title = Localized.tr("Localizable", "settings.icognitoKeyboard.title")
}
public enum InAppNotifications {
/// Enable local in-app notifications.
public static let description = Localized.tr("Localizable", "settings.inAppNotifications.description")
/// In-App Notifications
public static let title = Localized.tr("Localizable", "settings.inAppNotifications.title")
}
public static let action = Localized.tr("Localizable", "settings.infoDrawer.action")
public enum Biometrics {
/// Biometric authentication is stored through the native system on your phone, not by the xx messenger app. The xx network cannot access your biometric authentication data.
public static let subtitle = Localized.tr("Localizable", "settings.infoDrawer.biometrics.subtitle")
public static let title = Localized.tr("Localizable", "settings.infoDrawer.biometrics.title")
}
public enum Icognito {
/// Predictive text is a feature offered by your phone’s operating system. It involves storing entered text within your phone’s operating system and may involve sending it to remote servers. As a result, it may significantly degrade your privacy.
public static let subtitle = Localized.tr("Localizable", "settings.infoDrawer.icognito.subtitle")
public static let title = Localized.tr("Localizable", "settings.infoDrawer.icognito.title")
}
public enum Notifications {
/// Selecting this setting will share your account ID and unique phone identifiers with a notification service run by the xx network team. However, these details are obfuscated via an #ID collision system# when you receive a notification. As a result, both the notifications service and your notifications provider (Firebase on Android, Apple on iOS) cannot tell exactly when you receive a message.
public static let subtitle = Localized.tr("Localizable", "settings.infoDrawer.notifications.subtitle")
public static let title = Localized.tr("Localizable", "settings.infoDrawer.notifications.title")
}
public enum Privacy {
/// Because xx messenger does not capture your personal data or save your private keys, we will not be able to, at this time, help new users recover their account in case of being locked out, changing devices, etc. Account recovery support that continues to protect your privacy and personal data will be coming soon.
public static let subtitle = Localized.tr("Localizable", "settings.infoDrawer.privacy.subtitle")
public static let title = Localized.tr("Localizable", "settings.infoDrawer.privacy.title")
}
public enum Traffic {
/// Cover Traffic hides when you are sending messages by randomly sending messages to random users. Other user’s phones will pick up these messages but they will not see them or know you sent them. As a result, it not only hides when you send messages, but helps hide who you are talking to. #Read more about it#
public static let subtitle = Localized.tr("Localizable", "settings.infoDrawer.traffic.subtitle")
public static let title = Localized.tr("Localizable", "settings.infoDrawer.traffic.title")
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
}
}
public enum RemoteNotifications {
/// Enable remote push notifications.
public static let description = Localized.tr("Localizable", "settings.remoteNotifications.description")
/// Push Notifications
public static let title = Localized.tr("Localizable", "settings.remoteNotifications.title")
}
public enum Traffic {
/// Enable cover traffic
public static let subtitle = Localized.tr("Localizable", "settings.traffic.subtitle")
/// Cover Traffic
public static let title = Localized.tr("Localizable", "settings.traffic.title")
}
}
public enum Shared {
/// Done
public static let done = Localized.tr("Localizable", "shared.done")
/// #No internet connection.# Connect to a network to continue receiving messages.
public static let networkIssue = Localized.tr("Localizable", "shared.networkIssue")
/// #Your request failed#
public static let requestFailed = Localized.tr("Localizable", "shared.requestFailed")
/// Resend
public static let resend = Localized.tr("Localizable", "shared.resend")
public enum Search {
/// Search
public static let placeholder = Localized.tr("Localizable", "shared.search.placeholder")
}
}
public enum Validator {
public enum Code {
/// Code length should be at least 4 chars
public static let minimum = Localized.tr("Localizable", "validator.code.minimum")
}
public enum Email {
/// The email provided is invalid
public static let invalid = Localized.tr("Localizable", "validator.email.invalid")
/// ^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$
public static let regex = Localized.tr("Localizable", "validator.email.regex")
}
public enum Phone {
/// Phone length should be maximum 32 chars
public static let maximum = Localized.tr("Localizable", "validator.phone.maximum")
/// Phone length should be at least 4 chars
public static let minimum = Localized.tr("Localizable", "validator.phone.minimum")
/// This phone format doesn't fit the country
public static let regexIssue = Localized.tr("Localizable", "validator.phone.regexIssue")
}
public enum Username {
/// Character requirement met
public static let approved = Localized.tr("Localizable", "validator.username.approved")
/// Username can't be empty
public static let empty = Localized.tr("Localizable", "validator.username.empty")
/// The username provided contains one or more forbidden chars
public static let invalid = Localized.tr("Localizable", "validator.username.invalid")
/// Max character limit reached.
public static let maximum = Localized.tr("Localizable", "validator.username.maximum")
/// Username must be at least 4 characters
public static let minimum = Localized.tr("Localizable", "validator.username.minimum")
/// ^[a-zA-Z0-9][a-zA-Z0-9_\-+@.#]*[a-zA-Z0-9]$
public static let regex = Localized.tr("Localizable", "validator.username.regex")
/// Username must start and end with alphanumeric characters
public static let startEnd = Localized.tr("Localizable", "validator.username.startEnd")
}
}
}
// swiftlint:enable explicit_type_interface function_parameter_count identifier_name line_length
// swiftlint:enable nesting type_body_length type_name vertical_whitespace_opening_braces
// MARK: - Implementation Details
extension Localized {
private static func tr(_ table: String, _ key: String, _ args: CVarArg...) -> String {
let format = BundleToken.bundle.localizedString(forKey: key, value: nil, table: table)
return String(format: format, locale: Locale.current, arguments: args)
}
}
// swiftlint:disable convenience_type
private final class BundleToken {
static let bundle: Bundle = {
#if SWIFT_PACKAGE
return Bundle.module
#else
return Bundle(for: BundleToken.self)
#endif
}()
}
// swiftlint:enable convenience_type