Просмотр исходного кода

Localize the "Loops" HStack

(cherry picked from commit 5e9485ed8f7e889c04e7929af844cff015af3c65)
Jon Mårtensson 3 лет назад
Родитель
Сommit
bb5d33ab55
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      FreeAPS/Sources/Modules/Stat/View/StatRootView.swift

+ 2 - 1
FreeAPS/Sources/Modules/Stat/View/StatRootView.swift

@@ -138,7 +138,8 @@ extension Stat {
                 HStack {
                     ForEach(0 ..< loops_.count, id: \.self) { index in
                         VStack {
-                            Text(loops_[index].string).font(.subheadline).foregroundColor(.secondary)
+                            Text(NSLocalizedString(loops_[index].string, comment: "")).font(.subheadline)
+                                .foregroundColor(.secondary)
                             Text(
                                 index == 0 ? loops_[index].double.formatted() : (
                                     index == 2 ? loops_[index].double