Fixed the documentation of the "localise(for: in: value: table:)" function of the String+Localisation extension.

This commit is contained in:
Javier Cicchelli 2023-05-19 18:54:05 +02:00
parent dfbd892975
commit 86319561bf

View File

@ -20,8 +20,8 @@ public extension String {
/// - Parameters:
/// - languageCode: A string that represent a language code or identifier.
/// - bundle: A bundle in which to retrieve a localisation bundle.
/// - value: A default value to return if key is nil or if a localized string for key cant be found in the table.
/// - table: The receivers string table to search. In case of nil or an empty string, the method attempts to use the table in `Localizable.strings`.
/// - value: A default value to return if key is nil or if a localized string for key can't be found in the table.
/// - table: The receiver's string table to search. In case of nil or an empty string, the method attempts to use the table in `Localizable.strings`.
/// - Returns: A localized version of the string in case it is found. Otherwise, it returns the original string or a default string, if provided.
func localise(
for languageCode: String,