Fix localizable strings in FollowPackView

Signed-off-by: Terry Yiu <git@tyiu.xyz>
This commit is contained in:
2025-06-16 18:22:03 -04:00
committed by Daniel D’Aquino
parent 47514ace79
commit bd574d93c3
4 changed files with 15 additions and 2 deletions

View File

@@ -140,12 +140,12 @@ struct FollowPackView: View {
let displayName = Profile.displayName(profile: profile, pubkey: event.event.pubkey)
switch displayName {
case .one(let one):
Text(NSLocalizedString("Created by \(one)", comment: "Lets the user know who created this follow pack."))
Text("Created by \(one)", comment: "Lets the user know who created this follow pack.")
.font(.subheadline).foregroundColor(.gray)
case .both(username: let username, displayName: let displayName):
HStack(spacing: 6) {
Text(NSLocalizedString("Created by \(displayName)", comment: "Lets the user know who created this follow pack."))
Text("Created by \(displayName)", comment: "Lets the user know who created this follow pack.")
.font(.subheadline).foregroundColor(.gray)
Text(verbatim: "@\(username)")

View File

@@ -790,6 +790,11 @@ Context menu option for copying the version of damus.</note>
<target>Create new wallet</target>
<note>Button text for creating a new wallet.</note>
</trans-unit>
<trans-unit id="Created by %@" xml:space="preserve">
<source>Created by %@</source>
<target>Created by %@</target>
<note>Lets the user know who created this follow pack.</note>
</trans-unit>
<trans-unit id="Current balance" xml:space="preserve">
<source>Current balance</source>
<target>Current balance</target>
@@ -5006,6 +5011,11 @@ Context menu option for copying the version of damus.</note>
<target state="new">Create new wallet</target>
<note>Button text for creating a new wallet.</note>
</trans-unit>
<trans-unit id="Created by %@" xml:space="preserve">
<source>Created by %@</source>
<target state="new">Created by %@</target>
<note>Lets the user know who created this follow pack.</note>
</trans-unit>
<trans-unit id="Current balance" xml:space="preserve">
<source>Current balance</source>
<target state="new">Current balance</target>

View File

@@ -468,6 +468,9 @@
"Create new wallet" : {
"comment" : "Button text for creating a new wallet."
},
"Created by %@" : {
"comment" : "Lets the user know who created this follow pack."
},
"Current balance" : {
"comment" : "Label for displaying current wallet balance"
},