Rename network speed labels and refresh product screenshots
This commit is contained in:
1 parent
afa77ae16a
commit
bf8be6647b
3 files changed
+15
-15
No files matched your search
@@ -74,8 +74,8 @@ struct MetricsServerDetails: View {
|
||||
panel {
|
||||
HStack(spacing: 12) {
|
||||
VStack(spacing: 8) {
|
||||
figure("Send Rate", value: MetricsFormat.rate(point?.networkSend))
|
||||
figure("Receive Rate", value: MetricsFormat.rate(point?.networkReceive))
|
||||
figure("Send Speed", value: MetricsFormat.rate(point?.networkSend))
|
||||
figure("Receive Speed", value: MetricsFormat.rate(point?.networkReceive))
|
||||
}
|
||||
VStack(spacing: 8) {
|
||||
figure(
|
||||
@@ -124,8 +124,8 @@ struct MetricsServerDetails: View {
|
||||
.lineLimit(1).help(device.addresses.joined(separator: "\n"))
|
||||
}
|
||||
HStack(spacing: 6) {
|
||||
figure("Send Rate", value: MetricsFormat.rate(device.write))
|
||||
figure("Receive Rate", value: MetricsFormat.rate(device.read))
|
||||
figure("Send Speed", value: MetricsFormat.rate(device.write))
|
||||
figure("Receive Speed", value: MetricsFormat.rate(device.read))
|
||||
figure("Total Sent", value: MetricsFormat.bytes(device.writeTotal))
|
||||
figure("Total Received", value: MetricsFormat.bytes(device.readTotal))
|
||||
}
|
||||
|
||||
@@ -9843,18 +9843,18 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"Receive Rate" : {
|
||||
"Receive Speed" : {
|
||||
"localizations" : {
|
||||
"en" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "Receive Rate"
|
||||
"value" : "Receive Speed"
|
||||
}
|
||||
},
|
||||
"zh-Hans" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "接收速率"
|
||||
"value" : "接收速度"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -11118,18 +11118,18 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"Send Rate" : {
|
||||
"Send Speed" : {
|
||||
"localizations" : {
|
||||
"en" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "Send Rate"
|
||||
"value" : "Send Speed"
|
||||
}
|
||||
},
|
||||
"zh-Hans" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "发送速率"
|
||||
"value" : "发送速度"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -48,11 +48,11 @@ struct MetricsInteractionTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
func networkRateLabelsAreLocalizedInBothLanguages() {
|
||||
#expect(AppLocalization.string("Send Rate", locale: Locale(identifier: "en")) == "Send Rate")
|
||||
#expect(AppLocalization.string("Receive Rate", locale: Locale(identifier: "en")) == "Receive Rate")
|
||||
#expect(AppLocalization.string("Send Rate", locale: Locale(identifier: "zh-Hans")) == "发送速率")
|
||||
#expect(AppLocalization.string("Receive Rate", locale: Locale(identifier: "zh-Hans")) == "接收速率")
|
||||
func networkSpeedLabelsAreLocalizedInBothLanguages() {
|
||||
#expect(AppLocalization.string("Send Speed", locale: Locale(identifier: "en")) == "Send Speed")
|
||||
#expect(AppLocalization.string("Receive Speed", locale: Locale(identifier: "en")) == "Receive Speed")
|
||||
#expect(AppLocalization.string("Send Speed", locale: Locale(identifier: "zh-Hans")) == "发送速度")
|
||||
#expect(AppLocalization.string("Receive Speed", locale: Locale(identifier: "zh-Hans")) == "接收速度")
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in new issue
Block a user