Skip to content

Commit

Permalink
make favorite food translatable
Browse files Browse the repository at this point in the history
  • Loading branch information
Joerg-Schoemer committed Jan 11, 2024
1 parent d31a8c2 commit 54f0f82
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion LoopKitUI/CarbKit/AbsorptionTimePickerRow.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public struct AbsorptionTimePickerRow: View {
public var body: some View {
VStack(alignment: .leading, spacing: 0) {
HStack {
Text("Absorption Time")
Text(LocalizedString("Absorption Time", comment: "Label Absorption Time in CarbKit"))
.foregroundColor(.primary)

if showHowAbsorptionTimeWorks != nil {
Expand Down
2 changes: 1 addition & 1 deletion LoopKitUI/CarbKit/DatePickerRow.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public struct DatePickerRow: View {
public var body: some View {
VStack(alignment: .leading, spacing: 0) {
HStack {
Text("Time")
Text(LocalizedString("Time", comment: "Label Time in CarbKit"))
.foregroundColor(.primary)

Spacer()
Expand Down
2 changes: 1 addition & 1 deletion LoopKitUI/CarbKit/FoodTypeRow.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public struct FoodTypeRow: View {
public var body: some View {
HStack {
Text("Food Type")
.foregroundColor(.primary)
.foregroundColor(.primary)

Spacer()

Expand Down
3 changes: 2 additions & 1 deletion LoopKitUI/Resources/de.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,8 @@
Information about workout range relative to correction range */
"This will typically be" = "Ist in der Regel ";

/* Label for offset from midnight picker */
/* Label for offset from midnight picker
Label Time in CarbKit */
"Time" = "Zeit";

/* 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) */
Expand Down

0 comments on commit 54f0f82

Please sign in to comment.