Merge pull request #378 from StellarSea/refactor/localize-hardcoded-strings

fix: correct localized string typo and replace remaining hardcoded strings
This commit is contained in:
Hariharan Mudaliar 2026-04-03 11:34:42 +05:30 • committed by GitHub
commit f8e8406859
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 193 additions and 72 deletions

View file

@ -76,27 +76,27 @@ enum MusicControlButton: String, CaseIterable, Identifiable, Codable, Defaults.S
var label: String {
switch self {
case .shuffle:
return "Shuffle"
return String(localized: "Shuffle")
case .trackBackward:
return "Previous Track"
return String(localized: "Previous Track")
case .playPause:
return "Play / Pause"
return String(localized: "Play / Pause")
case .trackForward:
return "Next Track"
return String(localized: "Next Track")
case .repeatMode:
return "Repeat"
return String(localized: "Repeat")
case .mediaOutput:
return "Change Media Output"
return String(localized: "Change Media Output")
case .airPlay:
return "AirPlay"
return String(localized: "AirPlay")
case .lyrics:
return "Lyrics"
return String(localized: "Lyrics")
case .seekBackward:
return "Rewind 10s"
return String(localized: "Rewind 10s")
case .seekForward:
return "Forward 10s"
return String(localized: "Forward 10s")
case .none:
return "Empty Slot"
return String(localized: "Empty Slot")
}
}