From 5b1d9d78feafdb8bc71f1d18a4d051208a57d775 Mon Sep 17 00:00:00 2001 From: Mathieu GROUSSEAU Date: Wed, 11 Jun 2025 08:51:07 +0200 Subject: [PATCH] Fix "Unit" translation key --- App/App/Localizable.xcstrings | 8 +------- App/App/View/PlayerVSPage.swift | 10 ++++------ 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/App/App/Localizable.xcstrings b/App/App/Localizable.xcstrings index 3a6936c..d85f283 100644 --- a/App/App/Localizable.xcstrings +++ b/App/App/Localizable.xcstrings @@ -16,9 +16,6 @@ } } } - }, - "%llu" : { - }, "appName" : { "extractionState" : "manual", @@ -239,9 +236,6 @@ } } } - }, - "inGame.title" : { - }, "mainMenu.button.newGame" : { "extractionState" : "manual", @@ -590,4 +584,4 @@ } }, "version" : "1.0" -} \ No newline at end of file +} diff --git a/App/App/View/PlayerVSPage.swift b/App/App/View/PlayerVSPage.swift index 956db4f..888452f 100644 --- a/App/App/View/PlayerVSPage.swift +++ b/App/App/View/PlayerVSPage.swift @@ -10,8 +10,8 @@ import Charts struct PlayerVSPage: View { private var chartData: [(key: LocalizedStringKey, color: Color, value: UInt)] = [ - (key: "playerVs.chart.wins \("Player 1")", color: .red, value: 1), - (key: "playerVs.chart.wins \("Player 2")", color: .yellow, value: 2), + (key: "playerVs.chart.wins \("Player 1" as String)", color: .red, value: 1), + (key: "playerVs.chart.wins \("Player 2" as String)", color: .yellow, value: 2), (key: "playerVs.chart.draws", color: .gray, value: 3), ] @@ -26,7 +26,7 @@ struct PlayerVSPage: View { ForEach(chartData, id: \.color) { entry in SectorMark(angle: .value(entry.key, entry.value)) .annotation(position: .overlay) { - Text("\(entry.value)").font(.caption) + Text(entry.value.description).font(.caption) } .foregroundStyle(entry.color) } @@ -47,9 +47,7 @@ struct PlayerPicker: View { VStack { Circle().frame(width: 50, height: 50) - let text: String = "Button Idk" - - Button(text) { + Button("Button Idk" as String) { // } }