Skip to content

Commit 128a67d

Browse files
make favorite food translatable
1 parent 6c6495b commit 128a67d

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

LoopKitUI/CarbKit/AbsorptionTimePickerRow.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public struct AbsorptionTimePickerRow: View {
3535
public var body: some View {
3636
VStack(alignment: .leading, spacing: 0) {
3737
HStack {
38-
Text("Absorption Time")
38+
Text(LocalizedString("Absorption Time", comment: "Label Absorption Time in CarbKit"))
3939
.foregroundColor(.primary)
4040

4141
if showHowAbsorptionTimeWorks != nil {

LoopKitUI/CarbKit/DatePickerRow.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public struct DatePickerRow: View {
5252
public var body: some View {
5353
VStack(alignment: .leading, spacing: 0) {
5454
HStack {
55-
Text("Time")
55+
Text(LocalizedString("Time", comment: "Label Time in CarbKit"))
5656
.foregroundColor(.primary)
5757

5858
Spacer()

LoopKitUI/CarbKit/FoodTypeRow.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public struct FoodTypeRow: View {
4141
public var body: some View {
4242
HStack {
4343
Text("Food Type")
44-
.foregroundColor(.primary)
44+
.foregroundColor(.primary)
4545

4646
Spacer()
4747

LoopKitUI/Resources/de.lproj/Localizable.strings

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,8 @@
640640
Information about workout range relative to correction range */
641641
"This will typically be" = "Ist in der Regel ";
642642

643-
/* Label for offset from midnight picker */
643+
/* Label for offset from midnight picker
644+
Label Time in CarbKit */
644645
"Time" = "Zeit";
645646

646647
/* The schedule table view header describing the configured time zone difference from the default time zone. The substitution parameters are: (1: time zone name)(2: +/-)(3: time interval) */

0 commit comments

Comments
 (0)