TXMissingPolicy

@objc
public protocol TXMissingPolicy

A protocol for classes that determine what translation is returned when the requested translation is not available.

Can be used in multiple cases, such as when the translation is not found.

  • Return a string as a translation based on the given source string.

    Classes that conform to this protocol may choose to return anything relevant to the given source string or not, based on their custom policy.

    Declaration

    Swift

    func get(sourceString: String) -> String

    Parameters

    sourceString

    the source string