[Enhancement] String localisation #21

Merged
javier merged 6 commits from enhancement/localisable-strings into main 2023-05-19 16:58:51 +00:00
Showing only changes of commit 86319561bf - Show all commits

View File

@ -20,8 +20,8 @@ public extension String {
/// - Parameters: /// - Parameters:
/// - languageCode: A string that represent a language code or identifier. /// - languageCode: A string that represent a language code or identifier.
/// - bundle: A bundle in which to retrieve a localisation bundle. /// - 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. /// - 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 receivers string table to search. In case of nil or an empty string, the method attempts to use the table in `Localizable.strings`. /// - 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. /// - 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( func localise(
for languageCode: String, for languageCode: String,