Localizations fixes

This commit is contained in:
Arkadiusz Fal
2023-04-22 23:10:05 +02:00
parent 5c0cf7452c
commit 8e829ed3b1
3 changed files with 13 additions and 12 deletions

View File

@@ -137,12 +137,13 @@ struct AdvancedSettings: View {
HStack {
Text("Maximum feed items")
.frame(minWidth: 200, alignment: .leading)
.multilineTextAlignment(.leading)
TextField("Limit", text: $feedCacheSize)
.multilineTextAlignment(.trailing)
#if !os(macOS)
.keyboardType(.numberPad)
#endif
}
.multilineTextAlignment(.trailing)
}
private var showCacheStatusToggle: some View {
@@ -167,7 +168,7 @@ struct AdvancedSettings: View {
}
var cacheSize: some View {
Text(String(format: "Total size: %@", BaseCacheModel.shared.totalSizeFormatted))
Text(String(format: "Total size: %@".localized(), BaseCacheModel.shared.totalSizeFormatted))
.foregroundColor(.secondary)
}
}