Defined the localizations for the unavailable content inside the ContentView view in the app target.
This commit is contained in:
@@ -45,6 +45,27 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"view.content.content-unavailable.description" : {
|
||||||
|
"extractionState" : "manual",
|
||||||
|
"localizations" : {
|
||||||
|
"en" : {
|
||||||
|
"stringUnit" : {
|
||||||
|
"state" : "translated",
|
||||||
|
"value" : "Choose a task group from the sidebar"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"view.content.content-unavailable.title" : {
|
||||||
|
"extractionState" : "manual",
|
||||||
|
"localizations" : {
|
||||||
|
"en" : {
|
||||||
|
"stringUnit" : {
|
||||||
|
"state" : "translated",
|
||||||
|
"value" : "Select a Group"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"view.new-task.navigation.title" : {
|
"view.new-task.navigation.title" : {
|
||||||
"extractionState" : "manual",
|
"extractionState" : "manual",
|
||||||
@@ -122,6 +143,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
"view.task-list-content.content-unavailable.title" : {
|
"view.task-list-content.content-unavailable.title" : {
|
||||||
"extractionState" : "manual",
|
"extractionState" : "manual",
|
||||||
"localizations" : {
|
"localizations" : {
|
||||||
|
|||||||
@@ -44,9 +44,9 @@ struct ContentView: View {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
ContentUnavailableView(
|
ContentUnavailableView(
|
||||||
"Select a Group",
|
"view.content.content-unavailable.title",
|
||||||
systemImage: "sidebar.left",
|
systemImage: "sidebar.left",
|
||||||
description: Text("Choose a task group from the sidebar")
|
description: Text("view.content.content-unavailable.description")
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ extension TaskGroupListView {
|
|||||||
|
|
||||||
Spacer()
|
Spacer()
|
||||||
|
|
||||||
Text("\(count)")
|
Text(String(count))
|
||||||
.font(.title)
|
.font(.title)
|
||||||
.fontWeight(.bold)
|
.fontWeight(.bold)
|
||||||
.foregroundStyle(group.color)
|
.foregroundStyle(group.color)
|
||||||
|
|||||||
Reference in New Issue
Block a user