mirror of
https://github.com/yattee/yattee.git
synced 2025-08-05 02:04:07 +00:00
Localizations
This commit is contained in:
@@ -3,7 +3,7 @@ import Foundation
|
||||
import SwiftUI
|
||||
|
||||
struct Buffering: View {
|
||||
var reason = "Buffering stream..."
|
||||
var reason = "Buffering stream...".localized()
|
||||
var state: String?
|
||||
|
||||
#if os(iOS)
|
||||
|
@@ -14,7 +14,15 @@ struct OpeningStream: View {
|
||||
}
|
||||
|
||||
var reason: String {
|
||||
player.videoBeingOpened.isNil ? "Opening\(streamQuality)stream..." : "Loading streams..."
|
||||
guard player.videoBeingOpened != nil else {
|
||||
return "Loading streams...".localized()
|
||||
}
|
||||
|
||||
if player.musicMode {
|
||||
return "Opening audio stream...".localized()
|
||||
}
|
||||
|
||||
return String(format: "Opening %@ stream...".localized(), streamQuality)
|
||||
}
|
||||
|
||||
var state: String? {
|
||||
|
@@ -45,11 +45,11 @@ enum PlayerControlsLayout: String, CaseIterable, Defaults.Serializable {
|
||||
var description: String {
|
||||
switch self {
|
||||
case .tvRegular:
|
||||
return "TV"
|
||||
return "TV".localized()
|
||||
case .veryLarge:
|
||||
return "Very Large"
|
||||
return "Very Large".localized()
|
||||
default:
|
||||
return rawValue.capitalized
|
||||
return rawValue.capitalized.localized()
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user