String
public extension String
-
Gets a localized string resource using the string’s current value as key
Declaration
Swift
func localized(bundle: Bundle = .main, tableName: String? = nil) -> String
Parameters
bundle
the bundle containing the localized string resource to use. Default = main app bundle.
tableName
the name of the
.strings
file containing the localized strings for this enum.Return Value
the localized string or else itself if it is not localized.