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

@@ -191,7 +191,7 @@ struct TapGesturesSettingsView: View {
Button(role: .cancel) {
selectedZonePosition = nil
} label: {
Label("Close", systemImage: "xmark")
Label(String(localized: "common.close"), systemImage: "xmark")
.labelStyle(.iconOnly)
}
}

View File

@@ -323,7 +323,7 @@ private struct PreviewButton: View {
}
} else if configuration.buttonType == .timeDisplay {
// Time display
Text("0:00 / 3:45")
Text(verbatim: "0:00 / 3:45")
.font(fontStyle.font(.caption))
.foregroundStyle(.white.opacity(0.9))
} else if configuration.buttonType == .brightness || configuration.buttonType == .volume {
@@ -372,7 +372,7 @@ private struct PreviewButton: View {
.fill(.white.opacity(0.3))
.frame(width: avatarSize, height: avatarSize)
.overlay {
Text("Y")
Text(verbatim: "Y")
.font(.system(size: size * 0.6, weight: .semibold))
.foregroundStyle(.white.opacity(0.8))
}
@@ -382,14 +382,14 @@ private struct PreviewButton: View {
if settings.showTitle || settings.showSourceName {
VStack(alignment: .leading, spacing: 0) {
if settings.showTitle {
Text("Video Title")
Text(String(localized: "common.videoTitle"))
.font(fontStyle.font(size: size * 0.5, weight: .medium))
.foregroundStyle(.white.opacity(0.9))
.lineLimit(1)
}
if settings.showSourceName {
Text("Channel")
Text(String(localized: "common.channel"))
.font(fontStyle.font(size: size * 0.4))
.foregroundStyle(.white.opacity(0.6))
.lineLimit(1)

View File

@@ -288,7 +288,7 @@ private struct PreviewButtonView: View {
.frame(width: spacerWidth)
}
} else if configuration.buttonType == .timeDisplay {
Text("0:00 / 3:45")
Text(verbatim: "0:00 / 3:45")
.font(fontStyle.font(size: size * 0.6, weight: .medium))
.foregroundStyle(.white.opacity(0.9))
} else if configuration.buttonType == .brightness || configuration.buttonType == .volume {
@@ -340,7 +340,7 @@ private struct PreviewButtonView: View {
.fill(.white.opacity(0.3))
.frame(width: avatarSize, height: avatarSize)
.overlay {
Text("Y")
Text(verbatim: "Y")
.font(.system(size: size * 0.7, weight: .semibold))
.foregroundStyle(.white.opacity(0.8))
}
@@ -350,14 +350,14 @@ private struct PreviewButtonView: View {
if settings.showTitle || settings.showSourceName {
VStack(alignment: .leading, spacing: 1) {
if settings.showTitle {
Text("Video Title")
Text(verbatim: "Video Title")
.font(fontStyle.font(size: size * 0.55, weight: .medium))
.foregroundStyle(.white.opacity(0.9))
.lineLimit(1)
}
if settings.showSourceName {
Text("Channel Name")
Text(verbatim: "Channel Name")
.font(fontStyle.font(size: size * 0.45))
.foregroundStyle(.white.opacity(0.6))
.lineLimit(1)