@@ -9,7 +9,7 @@ import SwiftVB
99import Drops
1010#endif
1111
12- @available ( iOS 14 , watchOS 7 . 0 , macOS 11 . 0 , * )
12+ @available ( iOS 15 , watchOS 8 . 0 , macOS 12 . 0 , * )
1313public struct SwiftNEW : View {
1414 @AppStorage ( " version " ) var version = 1.0
1515 @AppStorage ( " build " ) var build : Double = 1
@@ -90,7 +90,8 @@ public struct SwiftNEW: View {
9090
9191 if loading {
9292 VStack {
93- Text ( " Loading... " ) . padding ( . bottom)
93+ Text ( String ( localized: " Loading... " , bundle: . module) )
94+ . padding ( . bottom)
9495 ProgressView ( )
9596 }
9697 }
@@ -165,8 +166,10 @@ public struct SwiftNEW: View {
165166 if align == . center {
166167 appIcon
167168 }
168- Text ( " What's New in " ) . bold ( ) . font ( . largeTitle)
169- Text ( " Version \( Bundle . versionBuild) " ) . bold ( ) . font ( . title) . foregroundColor ( . secondary)
169+ Text ( String ( localized: " What's New in " , bundle: . module) )
170+ . bold ( ) . font ( . largeTitle)
171+ Text ( " \( String ( localized: " Version " , bundle: . module) ) \( Bundle . versionBuild) " )
172+ . bold ( ) . font ( . title) . foregroundColor ( . secondary)
170173 }
171174 if align == . trailing {
172175 appIcon
@@ -176,8 +179,10 @@ public struct SwiftNEW: View {
176179#elseif os(macOS) || os(xrOS)
177180 public var headings : some View {
178181 VStack {
179- Text ( " What's New in " ) . bold ( ) . font ( . largeTitle)
180- Text ( " Version \( Bundle . versionBuild) " ) . bold ( ) . font ( . title) . foregroundColor ( . secondary)
182+ Text ( String ( localized: " What's New in " , bundle: . module) )
183+ . bold ( ) . font ( . largeTitle)
184+ Text ( " \( String ( localized: " Version " , bundle: . module) ) \( Bundle . versionBuild) " )
185+ . bold ( ) . font ( . title) . foregroundColor ( . secondary)
181186 }
182187 }
183188#endif
@@ -187,7 +192,7 @@ public struct SwiftNEW: View {
187192 if align == . trailing {
188193 Spacer ( )
189194 }
190- Text ( " Show History " )
195+ Text ( String ( localized : " Show History " , bundle : . module ) )
191196 Image ( systemName: " arrow.up.bin " )
192197 if align == . leading {
193198 Spacer ( )
@@ -209,7 +214,8 @@ public struct SwiftNEW: View {
209214 if align == . trailing {
210215 Spacer ( )
211216 }
212- Text ( " Continue " ) . bold ( )
217+ Text ( String ( localized: " Continue " , bundle: . module) )
218+ . bold ( )
213219 Image ( systemName: " arrow.right.circle.fill " )
214220 if align == . leading {
215221 Spacer ( )
@@ -233,7 +239,8 @@ public struct SwiftNEW: View {
233239 VStack ( alignment: align) {
234240 Spacer ( )
235241
236- Text ( " History " ) . bold ( ) . font ( . largeTitle)
242+ Text ( String ( localized: " History " , bundle: . module) )
243+ . bold ( ) . font ( . largeTitle)
237244
238245 Spacer ( )
239246
@@ -283,7 +290,8 @@ public struct SwiftNEW: View {
283290 if align == . trailing {
284291 Spacer ( )
285292 }
286- Text ( " Return " ) . bold ( )
293+ Text ( String ( localized: " Return " , bundle: . module) )
294+ . bold ( )
287295 Image ( systemName: " arrow.down.circle.fill " )
288296 if align == . leading {
289297 Spacer ( )
0 commit comments