LocalizationParameters

public struct LocalizationParameters : Equatable

The localization parameters to control some aspects of how localized strings are fetched, like the localization table to use and the separator of the key strings.

  • The string table to search. If tableName is nil or is an empty string, the Localizable.strings is used instead.

    Declaration

    Swift

    public let tableName: String?
  • Indicates the key separator string, set it if you want the localization keys to have a different separator other than “.”, otherwise a “.” is used.

    Declaration

    Swift

    public let keySeparator: String?
  • Initializes an LocalizationParameters.

    Declaration

    Swift

    public init(tableName: String? = nil, keySeparator: String? = nil)

    Parameters

    tableName

    The string table to search.

    keySeparator

    The key separator string.