164 lines
7.8 KiB
Swift
Generated
164 lines
7.8 KiB
Swift
Generated
// swiftlint:disable all
|
||
// Generated using SwiftGen — https://github.com/SwiftGen/SwiftGen
|
||
|
||
import Foundation
|
||
|
||
// swiftlint:disable superfluous_disable_command file_length implicit_return prefer_self_in_static_references
|
||
|
||
// MARK: - Strings
|
||
|
||
// swiftlint:disable explicit_type_interface function_parameter_count identifier_name line_length
|
||
// swiftlint:disable nesting type_body_length type_name vertical_whitespace_opening_braces
|
||
internal enum L10n {
|
||
internal enum Localizable {
|
||
/// Some /*alert body there
|
||
internal static let alertMessage = L10n.tr("Localizable", "alert__message", fallback: "Some /*alert body there")
|
||
/// Title for an alert 1️⃣
|
||
internal static let alertTitle = L10n.tr("Localizable", "alert__title", fallback: "Title of the alert")
|
||
/// value1 value
|
||
internal static let key1 = L10n.tr("Localizable", "key1", fallback: "value1\tvalue")
|
||
/// These are %3$@'s %1$d %2$@.
|
||
internal static func objectOwnership(_ p1: Int, _ p2: Any, _ p3: Any) -> String {
|
||
return L10n.tr("Localizable", "ObjectOwnership", p1, String(describing: p2), String(describing: p3), fallback: "These are %3$@'s %1$d %2$@.")
|
||
}
|
||
/// This is a %% character.
|
||
internal static let percent = L10n.tr("Localizable", "percent", fallback: "This is a %% character.")
|
||
/// Hello, my name is "%@" and I'm %d
|
||
internal static func `private`(_ p1: Any, _ p2: Int) -> String {
|
||
return L10n.tr("Localizable", "private", String(describing: p1), p2, fallback: "Hello, my name is \"%@\" and I'm %d")
|
||
}
|
||
/// Object: '%@', Character: '%c', Integer: '%d', Float: '%f', CString: '%s', Pointer: '%p'
|
||
internal static func types(_ p1: Any, _ p2: CChar, _ p3: Int, _ p4: Float, _ p5: UnsafePointer<CChar>, _ p6: UnsafeRawPointer) -> String {
|
||
return L10n.tr("Localizable", "types", String(describing: p1), p2, p3, p4, p5, Int(bitPattern: p6), fallback: "Object: '%@', Character: '%c', Integer: '%d', Float: '%f', CString: '%s', Pointer: '%p'")
|
||
}
|
||
internal enum Apples {
|
||
/// You have %d apples
|
||
internal static func count(_ p1: Int) -> String {
|
||
return L10n.tr("Localizable", "apples.count", p1, fallback: "You have %d apples")
|
||
}
|
||
}
|
||
internal enum Bananas {
|
||
/// A comment with no space above it
|
||
internal static func owner(_ p1: Int, _ p2: Any) -> String {
|
||
return L10n.tr("Localizable", "bananas.owner", p1, String(describing: p2), fallback: "Those %d bananas belong to %@.")
|
||
}
|
||
}
|
||
internal enum Key1 {
|
||
/// Same as "key1" = "value1"; but in the context of user not logged in
|
||
internal static let anonymous = L10n.tr("Localizable", "key1.anonymous", fallback: "value2")
|
||
}
|
||
internal enum Many {
|
||
internal enum Placeholders {
|
||
/// %@ %d %f %5$d %04$f %6$d %007$@ %8$3.2f %11$1.2f %9$@ %10$d
|
||
internal static func base(_ p1: Any, _ p2: Int, _ p3: Float, _ p4: Float, _ p5: Int, _ p6: Int, _ p7: Any, _ p8: Float, _ p9: Any, _ p10: Int, _ p11: Float) -> String {
|
||
return L10n.tr("Localizable", "many.placeholders.base", String(describing: p1), p2, p3, p4, p5, p6, String(describing: p7), p8, String(describing: p9), p10, p11, fallback: "%@ %d %f %5$d %04$f %6$d %007$@ %8$3.2f %11$1.2f %9$@ %10$d")
|
||
}
|
||
/// %@ %d %0$@ %f %5$d %04$f %6$d %007$@ %8$3.2f %11$1.2f %9$@ %10$d
|
||
internal static func zero(_ p1: Any, _ p2: Int, _ p3: Float, _ p4: Float, _ p5: Int, _ p6: Int, _ p7: Any, _ p8: Float, _ p9: Any, _ p10: Int, _ p11: Float) -> String {
|
||
return L10n.tr("Localizable", "many.placeholders.zero", String(describing: p1), p2, p3, p4, p5, p6, String(describing: p7), p8, String(describing: p9), p10, p11, fallback: "%@ %d %0$@ %f %5$d %04$f %6$d %007$@ %8$3.2f %11$1.2f %9$@ %10$d")
|
||
}
|
||
}
|
||
}
|
||
internal enum Settings {
|
||
internal enum NavigationBar {
|
||
/// Some Reserved Keyword there👍🏽
|
||
internal static let self_️ = L10n.tr("Localizable", "settings.navigation-bar.self♦️", fallback: "Some Reserved Keyword there👍🏽")
|
||
internal enum Title {
|
||
internal enum Deeper {
|
||
internal enum Than {
|
||
internal enum We {
|
||
internal enum Can {
|
||
internal enum Handle {
|
||
internal enum No {
|
||
internal enum Really {
|
||
internal enum This {
|
||
internal enum Is {
|
||
/// DeepSettings
|
||
internal static let deep = L10n.tr("Localizable", "settings.navigation-bar.title.deeper.than.we.can.handle.no.really.this.is.deep", fallback: "DeepSettings")
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
internal enum Even {
|
||
/// Settings
|
||
internal static let deeper = L10n.tr("Localizable", "settings.navigation-bar.title.even.deeper", fallback: "Settings")
|
||
}
|
||
}
|
||
}
|
||
internal enum UserProfileSection {
|
||
/// Here you can change some user profile settings.
|
||
internal static let footerText = L10n.tr("Localizable", "settings.user__profile_section.footer_text", fallback: "Here you can change some user profile settings.")
|
||
/// User Profile Settings
|
||
internal static let headerTitle = L10n.tr("Localizable", "settings.user__profile_section.HEADER_TITLE", fallback: "User Profile Settings")
|
||
}
|
||
}
|
||
internal enum What {
|
||
internal enum Happens {
|
||
/// some comment 👨👩👧👦
|
||
internal static let here = L10n.tr("Localizable", "what./*happens*/.here", fallback: "hello world! /* still in string */")
|
||
}
|
||
}
|
||
}
|
||
internal enum LocMultiline {
|
||
/// multi
|
||
/// line
|
||
internal static let multiline = L10n.tr("LocMultiline", "MULTILINE", fallback: "multi\nline")
|
||
/// test
|
||
internal static let multiLineKey = L10n.tr("LocMultiline", "multiLine\nKey", fallback: "test")
|
||
/// A multiline
|
||
/// comment
|
||
internal static let multilineComment = L10n.tr("LocMultiline", "multiline-comment", fallback: "This string should have a multiline comment")
|
||
/// another
|
||
/// multi
|
||
/// line
|
||
internal static let multiline2 = L10n.tr("LocMultiline", "MULTILINE2", fallback: "another\nmulti\n line")
|
||
/// single line
|
||
internal static let singleline = L10n.tr("LocMultiline", "SINGLELINE", fallback: "single line")
|
||
/// another single line
|
||
internal static let singleline2 = L10n.tr("LocMultiline", "SINGLELINE2", fallback: "another single line")
|
||
internal enum Ending {
|
||
/// Ceci n'est pas une pipe.
|
||
internal static let with = L10n.tr("LocMultiline", "ending.with.", fallback: "Ceci n'est pas une pipe.")
|
||
}
|
||
internal enum Some {
|
||
internal enum Dots {
|
||
internal enum And {
|
||
internal enum Empty {
|
||
/// Veni, vidi, vici
|
||
internal static let components = L10n.tr("LocMultiline", "..some..dots.and..empty..components..", fallback: "Veni, vidi, vici")
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
// 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 L10n {
|
||
private static func tr(_ table: String, _ key: String, _ args: CVarArg..., fallback value: String) -> String {
|
||
let format = BundleToken.bundle.localizedString(forKey: key, value: value, 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
|
||
// swiftlint:enable all
|