From 9d58f8ddeca18853837ba7d9788d8a9fe39863e6 Mon Sep 17 00:00:00 2001 From: Javier Cicchelli Date: Thu, 12 Feb 2026 04:15:10 +0100 Subject: [PATCH] Defined the localizations for the unavailable content inside the ContentView view in the app target. --- App/Resources/Localizable.xcstrings | 22 +++++++++++++++++++ App/Sources/Views/ContentView.swift | 4 ++-- .../TaskGroupList/TaskGroupListCard.swift | 2 +- 3 files changed, 25 insertions(+), 3 deletions(-) diff --git a/App/Resources/Localizable.xcstrings b/App/Resources/Localizable.xcstrings index cfe439f..be674fb 100644 --- a/App/Resources/Localizable.xcstrings +++ b/App/Resources/Localizable.xcstrings @@ -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" : { "extractionState" : "manual", @@ -122,6 +143,7 @@ } } } + }, "view.task-list-content.content-unavailable.title" : { "extractionState" : "manual", "localizations" : { diff --git a/App/Sources/Views/ContentView.swift b/App/Sources/Views/ContentView.swift index 9d8b4f0..189ae46 100644 --- a/App/Sources/Views/ContentView.swift +++ b/App/Sources/Views/ContentView.swift @@ -44,9 +44,9 @@ struct ContentView: View { } else { ContentUnavailableView( - "Select a Group", + "view.content.content-unavailable.title", systemImage: "sidebar.left", - description: Text("Choose a task group from the sidebar") + description: Text("view.content.content-unavailable.description") ) } } diff --git a/App/Sources/Views/TaskGroupList/TaskGroupListCard.swift b/App/Sources/Views/TaskGroupList/TaskGroupListCard.swift index 47e06dc..4628b23 100644 --- a/App/Sources/Views/TaskGroupList/TaskGroupListCard.swift +++ b/App/Sources/Views/TaskGroupList/TaskGroupListCard.swift @@ -63,7 +63,7 @@ extension TaskGroupListView { Spacer() - Text("\(count)") + Text(String(count)) .font(.title) .fontWeight(.bold) .foregroundStyle(group.color)