This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Douglas Hill, February 2018 | |
import Foundation | |
/// Returns a localised string with the key as an enum case so the compiler checks it exists. | |
/// The enum should be automatically generated using UpdateLocalisedStringKeys.swift. | |
public func localisedString(_ key: LocalisedStringKey) -> String { | |
return Bundle.main.localizedString(forKey: key.rawValue, value: nil, table: nil) | |
} |