Fix locales

This commit is contained in:
Arkadiusz Fal
2026-02-09 00:13:46 +01:00
parent 05f921d605
commit 8464464199
55 changed files with 644 additions and 548 deletions

View File

@@ -343,7 +343,7 @@ private struct DeviceRowContent: View {
#Preview {
NavigationStack {
RemoteControlContentView(navigationStyle: .link)
.navigationTitle("Remote Control")
.navigationTitle(String(localized: "remoteControl.title"))
}
.appEnvironment(.preview)
}

View File

@@ -337,7 +337,7 @@ struct RemoteControlView: View {
.font(.caption)
.foregroundStyle(.secondary)
}
Text("\(Int(ago))s ago")
Text("remoteControl.lastSeen \(Int(ago))")
.font(.caption2.monospacedDigit())
.foregroundStyle(.tertiary)
}

View File

@@ -16,7 +16,7 @@ struct RemoteDevicesSheet: View {
DynamicSheetContainer {
NavigationStack {
RemoteControlContentView(navigationStyle: .selection($selectedDevice))
.navigationTitle("Remote Control")
.navigationTitle(String(localized: "remoteControl.title"))
#if os(iOS)
.navigationBarTitleDisplayMode(.inline)
#endif
@@ -28,7 +28,7 @@ struct RemoteDevicesSheet: View {
Button(role: .cancel) {
dismiss()
} label: {
Label("Close", systemImage: "xmark")
Label(String(localized: "common.close"), systemImage: "xmark")
.labelStyle(.iconOnly)
}
}