fix: typo

This commit is contained in:
Nikita Semenov 2023-03-17 11:38:58 +03:00
parent a234943394
commit f3ed27e83f
3 changed files with 6 additions and 6 deletions

View File

@ -37,8 +37,8 @@ open class DefaultPlaceholderLocalizationProvider: PlaceholderLocalizationProvid
"common_placeholder_title_empty_state"
}
public static var repeateKey: String {
"common_global_repeate"
public static var repeatKey: String {
"common_global_repeat"
}
}
@ -59,8 +59,8 @@ open class DefaultPlaceholderLocalizationProvider: PlaceholderLocalizationProvid
bundle.localizedString(forKey: Defaults.emptyStateKey, value: "The list is empty.", table: tableName)
}
open var repeateButtonTitle: String {
bundle.localizedString(forKey: Defaults.repeateKey, value: "Repeate", table: tableName)
open var repeatButtonTitle: String {
bundle.localizedString(forKey: Defaults.repeatKey, value: "Repeat", table: tableName)
}
// MARK: - Init

View File

@ -24,5 +24,5 @@ public protocol PlaceholderLocalizationProvider {
var errorTitle: String { get }
var loadingDataErrorTitle: String { get }
var emptyStateTitle: String { get }
var repeateButtonTitle: String { get }
var repeatButtonTitle: String { get }
}

View File

@ -72,7 +72,7 @@ open class PlaceholderFactory {
}
}
.withButton { buttonStyle in
buttonStyle.titles = [.normal: localizationProvider.repeateButtonTitle]
buttonStyle.titles = [.normal: localizationProvider.repeatButtonTitle]
buttonStyle.appearance = [.normal: Self.defaultButtonAppearance]
}
}