SystemMessages

public protocol SystemMessages

Helper protocol used to reads localized messages from JSON files.

  • readMessages(from:) Default implementation

    Returns all localized texts from a JSON file.

    Default Implementation

    Returns all localized texts from a JSON file.

    Declaration

    Swift

    static func readMessages(from jsonFile: String) -> [String]

    Parameters

    json

    JSON file name, without the json extension.

    Return Value

    All localized tests read from the JSON.