Localized Title gets not displayed in sheet when (empty String) is selected in Localizable.xcstrings file #23

Closed
opened 2025-10-14 15:55:33 -06:00 by navan · 0 comments
Owner

Originally created by @flexlixrup on 3/10/2024

What happened?

The title of a new version does not get displayed when (empty String) - no translation is entered in the Localizable.xcstrings
file.
WhatsNew(version: "1.1.0", title: WhatsNew.Title(stringLiteral: String(localized: "Version 1.1.0")), features: [v1101, v1011])

While the description (empty String) in the Localizable.xcstrings would suggest that this is expected behaviour, other SwiftUI components handle it with displaying the text in the base language.

What are the steps to reproduce?

Create a WhatsNew Object with a localised title. Leave the localisation empty. See the missing title.

What is the expected behavior?

Displaying the title in the base language.

*Originally created by @flexlixrup on 3/10/2024* ### What happened? The title of a new version does not get displayed when (empty String) - no translation is entered in the Localizable.xcstrings file. `WhatsNew(version: "1.1.0", title: WhatsNew.Title(stringLiteral: String(localized: "Version 1.1.0")), features: [v1101, v1011])` While the description (empty String) in the Localizable.xcstrings would suggest that this is expected behaviour, other SwiftUI components handle it with displaying the text in the base language. ### What are the steps to reproduce? Create a WhatsNew Object with a localised title. Leave the localisation empty. See the missing title. ### What is the expected behavior? Displaying the title in the base language.
navan 2025-10-14 15:55:33 -06:00
  • closed this issue
  • added the
    bug
    bug
    labels
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github/WhatsNewKit#23
No description provided.