mirror of
https://github.com/yattee/yattee.git
synced 2026-02-20 09:49:46 +00:00
Fix locales
This commit is contained in:
@@ -343,7 +343,7 @@ private struct DeviceRowContent: View {
|
||||
#Preview {
|
||||
NavigationStack {
|
||||
RemoteControlContentView(navigationStyle: .link)
|
||||
.navigationTitle("Remote Control")
|
||||
.navigationTitle(String(localized: "remoteControl.title"))
|
||||
}
|
||||
.appEnvironment(.preview)
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user