File tree 2 files changed +20
-1
lines changed
2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -286,6 +286,23 @@ public enum CompletionStatus: String {
286
286
case thisWeek = " This Week "
287
287
case nextWeek = " Next Week "
288
288
case upcoming = " Upcoming "
289
+
290
+ var localized : String {
291
+ switch self {
292
+ case . completed:
293
+ return CourseLocalization . CourseDates. completed
294
+ case . pastDue:
295
+ return CourseLocalization . CourseDates. pastDue
296
+ case . today:
297
+ return CourseLocalization . CourseDates. today
298
+ case . thisWeek:
299
+ return CourseLocalization . CourseDates. today
300
+ case . nextWeek:
301
+ return CourseLocalization . CourseDates. today
302
+ case . upcoming:
303
+ return CourseLocalization . CourseDates. today
304
+ }
305
+ }
289
306
}
290
307
291
308
extension Array {
Original file line number Diff line number Diff line change @@ -239,7 +239,7 @@ struct CompletedBlocks: View {
239
239
} ) {
240
240
HStack {
241
241
VStack ( alignment: . leading) {
242
- Text ( CompletionStatus . completed. rawValue )
242
+ Text ( CompletionStatus . completed. localized )
243
243
. font ( Theme . Fonts. titleSmall)
244
244
. foregroundColor ( Theme . Colors. textPrimary)
245
245
@@ -286,6 +286,7 @@ struct CompletedBlocks: View {
286
286
Spacer ( )
287
287
if block. canShowLink && !block. firstComponentBlockID. isEmpty {
288
288
Image ( systemName: " chevron.right " )
289
+ . flipsForRightToLeftLayoutDirection ( true )
289
290
. resizable ( )
290
291
. scaledToFit ( )
291
292
. frame ( width: 6.55 , height: 11.15 )
@@ -325,6 +326,7 @@ struct BlockStatusView: View {
325
326
Spacer ( )
326
327
if block. canShowLink && !block. firstComponentBlockID. isEmpty {
327
328
Image ( systemName: " chevron.right " )
329
+ . flipsForRightToLeftLayoutDirection ( true )
328
330
. resizable ( )
329
331
. scaledToFit ( )
330
332
. frame ( width: 6.55 , height: 11.15 )
You can’t perform that action at this time.
0 commit comments