mirror of
https://github.com/yattee/yattee.git
synced 2025-08-09 20:24:06 +00:00
Localizations
This commit is contained in:
@@ -112,14 +112,15 @@ struct VideoContextMenuView: View {
|
||||
|
||||
private var watchedAtString: String? {
|
||||
if watchingNow {
|
||||
return "Watching now"
|
||||
return "Watching now".localized()
|
||||
}
|
||||
|
||||
if let watch = watch, let watchedAtString = watch.watchedAtString {
|
||||
if watchedAtString == "in 0 seconds" {
|
||||
return "Just watched"
|
||||
return "Just watched".localized()
|
||||
}
|
||||
return "Watched \(watchedAtString)"
|
||||
let localizedWatchedString = "Watched %@".localized()
|
||||
return String(format: localizedWatchedString, watchedAtString)
|
||||
}
|
||||
|
||||
return nil
|
||||
|
Reference in New Issue
Block a user