Export strings for translation

This commit is contained in:
2023-04-13 18:37:58 +02:00
parent d9285ab3ca
commit 32bb8c365d
4 changed files with 18 additions and 3 deletions

View File

@@ -93,7 +93,7 @@ struct ContentView: View {
@Environment(\.colorScheme) var colorScheme
var mystery: some View {
Text("Are you lost?")
Text("Are you lost?", comment: "Text asking the user if they are lost in the app.")
.id("what")
}

View File

@@ -37,8 +37,8 @@ struct NotificationsView: View {
var mystery: some View {
VStack(spacing: 20) {
Text("Wake up \(Profile.displayName(profile: state.profiles.lookup(id: state.pubkey), pubkey: state.pubkey).display_name)")
Text("You are dreaming...")
Text("Wake up, \(Profile.displayName(profile: state.profiles.lookup(id: state.pubkey), pubkey: state.pubkey).display_name)", comment: "Text telling the user to wake up, where the argument is their display name.")
Text("You are dreaming...", comment: "Text telling the user that they are dreaming.")
}
.id("what")
}

View File

@@ -190,6 +190,11 @@ Sentence composed of 2 variables to describe how many people are following a use
<target>Appearance</target>
<note>Section header for text and appearance settings</note>
</trans-unit>
<trans-unit id="Are you lost?" xml:space="preserve">
<source>Are you lost?</source>
<target>Are you lost?</target>
<note>Text asking the user if they are lost in the app.</note>
</trans-unit>
<trans-unit id="Are you sure you want to repost this?" xml:space="preserve">
<source>Are you sure you want to repost this?</source>
<target>Are you sure you want to repost this?</target>
@@ -1344,6 +1349,11 @@ YOU WILL NO LONGER BE ABLE TO LOG INTO DAMUS USING THIS ACCOUNT KEY.
ARE YOU SURE YOU WANT TO CONTINUE?</target>
<note>Alert for deleting the users account.</note>
</trans-unit>
<trans-unit id="Wake up, %@" xml:space="preserve">
<source>Wake up, %@</source>
<target>Wake up, %@</target>
<note>Text telling the user to wake up, where the argument is their display name.</note>
</trans-unit>
<trans-unit id="Wallet" xml:space="preserve">
<source>Wallet</source>
<target>Wallet</target>
@@ -1379,6 +1389,11 @@ YOU WILL NO LONGER BE ABLE TO LOG INTO DAMUS USING THIS ACCOUNT KEY.
<target>Yes, Post with Private Key</target>
<note>Button to proceed with posting a note even though it looks like they might be posting a private key.</note>
</trans-unit>
<trans-unit id="You are dreaming..." xml:space="preserve">
<source>You are dreaming...</source>
<target>You are dreaming...</target>
<note>Text telling the user that they are dreaming.</note>
</trans-unit>
<trans-unit id="You have no bookmarks yet, add them in the context menu" xml:space="preserve">
<source>You have no bookmarks yet, add them in the context menu</source>
<target>You have no bookmarks yet, add them in the context menu</target>