diff --git a/Library/Core/StringResource.swift b/Library/Core/StringResource.swift index de9c070..822eacf 100644 --- a/Library/Core/StringResource.swift +++ b/Library/Core/StringResource.swift @@ -21,6 +21,9 @@ public protocol StringResourceType { /// Locales of the a localizable string var locales: [String] { get } + + /// Comment directly before and/or after the string, if any + var comment: String? { get } } public struct StringResource: StringResourceType { @@ -36,11 +39,15 @@ public struct StringResource: StringResourceType { /// Locales of the a localizable string public let locales: [String] + + /// Comment directly before and/or after the string, if any + public let comment: String? - public init(key: String, tableName: String, bundle: NSBundle, locales: [String]) { + public init(key: String, tableName: String, bundle: NSBundle, locales: [String], comment: String?) { self.key = key self.tableName = tableName self.bundle = bundle self.locales = locales + self.comment = comment } }