[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:
/// - 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,