Translation
Represents translation with expressions.
-
Key that identifies a translation.
Declaration
Swift
let key: String -
Expressions that are related to a translation.
Declaration
Swift
let expressions: [Expression] -
Validates passed
textand usesfittingWidthfor getting proper localized string.Declaration
Swift
func validate(text: String, fittingWidth: Int?) -> String?Parameters
textA text that is matched.
fittingWidthA max width of a screen that text should match.
Return Value
A localized string if any expression validates the
text, otherwise nil.
View on GitHub
Translation Struct Reference