SystemMessages
public protocol SystemMessages
Helper protocol used to reads localized messages from JSON files.
-
readMessages(from:)
Default implementationReturns all localized texts from a JSON file.
Default Implementation
Returns all localized texts from a JSON file.
Declaration
Swift
static func readMessages(from json: String) -> [String]
Parameters
json
JSON file name, without the
json
extension.Return Value
All localized tests read from the JSON.