Fix "Unit" translation key

main
Mathieu GROUSSEAU 3 weeks ago
parent a6c3d5ddca
commit 5b1d9d78fe

@ -16,9 +16,6 @@
} }
} }
} }
},
"%llu" : {
}, },
"appName" : { "appName" : {
"extractionState" : "manual", "extractionState" : "manual",
@ -239,9 +236,6 @@
} }
} }
} }
},
"inGame.title" : {
}, },
"mainMenu.button.newGame" : { "mainMenu.button.newGame" : {
"extractionState" : "manual", "extractionState" : "manual",
@ -590,4 +584,4 @@
} }
}, },
"version" : "1.0" "version" : "1.0"
} }

@ -10,8 +10,8 @@ import Charts
struct PlayerVSPage: View { struct PlayerVSPage: View {
private var chartData: [(key: LocalizedStringKey, color: Color, value: UInt)] = [ private var chartData: [(key: LocalizedStringKey, color: Color, value: UInt)] = [
(key: "playerVs.chart.wins \("Player 1")", color: .red, value: 1), (key: "playerVs.chart.wins \("Player 1" as String)", color: .red, value: 1),
(key: "playerVs.chart.wins \("Player 2")", color: .yellow, value: 2), (key: "playerVs.chart.wins \("Player 2" as String)", color: .yellow, value: 2),
(key: "playerVs.chart.draws", color: .gray, value: 3), (key: "playerVs.chart.draws", color: .gray, value: 3),
] ]
@ -26,7 +26,7 @@ struct PlayerVSPage: View {
ForEach(chartData, id: \.color) { entry in ForEach(chartData, id: \.color) { entry in
SectorMark(angle: .value(entry.key, entry.value)) SectorMark(angle: .value(entry.key, entry.value))
.annotation(position: .overlay) { .annotation(position: .overlay) {
Text("\(entry.value)").font(.caption) Text(entry.value.description).font(.caption)
} }
.foregroundStyle(entry.color) .foregroundStyle(entry.color)
} }
@ -47,9 +47,7 @@ struct PlayerPicker: View {
VStack { VStack {
Circle().frame(width: 50, height: 50) Circle().frame(width: 50, height: 50)
let text: String = "Button Idk" Button("Button Idk" as String) {
Button(text) {
// //
} }
} }

Loading…
Cancel
Save