Fix string detection issues and complete pt-BR localization (100% done, as far as I can tell)

This commit is contained in:
Felipe Giacomini Cocco 2026-02-05 22:55:25 -03:00
commit f6f6321def
14 changed files with 402 additions and 77 deletions

View file

@ -432,17 +432,17 @@ struct InlineHUD: View {
func Type2Name(_ type: SneakContentType) -> String {
switch(type) {
case .volume:
return "Volume"
return String(localized: "Volume")
case .brightness:
return "Brightness"
return String(localized: "Brightness")
case .backlight:
return "Backlight"
return String(localized: "Backlight")
case .mic:
return "Mic"
return String(localized: "Mic")
case .bluetoothAudio:
return BluetoothAudioManager.shared.lastConnectedDevice?.name ?? "Bluetooth"
case .capsLock:
return "Caps Lock"
return String(localized: "Caps Lock")
default:
return ""
}