mirror of
https://github.com/yattee/yattee.git
synced 2025-08-09 20:24:06 +00:00
Localizations
This commit is contained in:
@@ -10,7 +10,7 @@ final class SearchQuery: ObservableObject {
|
||||
}
|
||||
|
||||
var name: String {
|
||||
rawValue.capitalized
|
||||
rawValue.capitalized.localized()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ final class SearchQuery: ObservableObject {
|
||||
}
|
||||
|
||||
var name: String {
|
||||
rawValue.capitalized
|
||||
rawValue.capitalized.localized()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,11 +36,11 @@ final class SearchQuery: ObservableObject {
|
||||
var name: String {
|
||||
switch self {
|
||||
case .uploadDate:
|
||||
return "Date"
|
||||
return "Date".localized()
|
||||
case .viewCount:
|
||||
return "Views"
|
||||
return "Views".localized()
|
||||
default:
|
||||
return rawValue.capitalized
|
||||
return rawValue.capitalized.localized()
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user