Continue localization (#503)

* Comments in agent.

* Fix copyable view
This commit is contained in:
Max Goedjen 2024-01-05 12:37:59 -08:00 committed by GitHub
parent 5af84583ab
commit 5718ae6805
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 32 additions and 3 deletions

View File

@ -2,6 +2,7 @@
"sourceLanguage" : "en", "sourceLanguage" : "en",
"strings" : { "strings" : {
"persist_authentication_accept_button" : { "persist_authentication_accept_button" : {
"comment" : "When the user authorizes an action using a secret that requires unlock, they're shown a notification offering to leave the secret unlocked for a set period of time. This is the title for the notification.",
"extractionState" : "manual", "extractionState" : "manual",
"localizations" : { "localizations" : {
"en" : { "en" : {
@ -13,6 +14,7 @@
} }
}, },
"persist_authentication_decline_button" : { "persist_authentication_decline_button" : {
"comment" : "When the user authorizes an action using a secret that requires unlock, they're shown a notification offering to leave the secret unlocked for a set period of time. This is the decline button for the notification.",
"extractionState" : "manual", "extractionState" : "manual",
"localizations" : { "localizations" : {
"en" : { "en" : {
@ -24,6 +26,7 @@
} }
}, },
"signed_notification_description_%@" : { "signed_notification_description_%@" : {
"comment" : "When the user performs an action using a secret, they're shown a notification describing what happened. This is the description, showing which secret was used. The placeholder is the name of the secret.",
"extractionState" : "manual", "extractionState" : "manual",
"localizations" : { "localizations" : {
"en" : { "en" : {
@ -35,6 +38,7 @@
} }
}, },
"signed_notification_title_%@" : { "signed_notification_title_%@" : {
"comment" : "When the user performs an action using a secret, they're shown a notification describing what happened. This is the title, showing which app requested the action. The placeholder is the name of the app.",
"extractionState" : "manual", "extractionState" : "manual",
"localizations" : { "localizations" : {
"en" : { "en" : {
@ -46,6 +50,7 @@
} }
}, },
"update_notification_ignore_button" : { "update_notification_ignore_button" : {
"comment" : "When an update is available, a notification is shown. This is the button to decline an update.",
"extractionState" : "manual", "extractionState" : "manual",
"localizations" : { "localizations" : {
"en" : { "en" : {
@ -57,6 +62,7 @@
} }
}, },
"update_notification_update_button" : { "update_notification_update_button" : {
"comment" : "When an update is available, a notification is shown. This is the button to download an update.",
"extractionState" : "manual", "extractionState" : "manual",
"localizations" : { "localizations" : {
"en" : { "en" : {
@ -68,6 +74,7 @@
} }
}, },
"update_notification_update_critical_title_%@" : { "update_notification_update_critical_title_%@" : {
"comment" : "When an update is available, a notification is shown. This is the title for a very high priority update with security fixes. The placeholder is for the application version, eg \"Critical Security Update - 2.0\"",
"extractionState" : "manual", "extractionState" : "manual",
"localizations" : { "localizations" : {
"en" : { "en" : {
@ -79,6 +86,7 @@
} }
}, },
"update_notification_update_description" : { "update_notification_update_description" : {
"comment" : "When an update is available, a notification is shown. This is the description to download an update.",
"extractionState" : "manual", "extractionState" : "manual",
"localizations" : { "localizations" : {
"en" : { "en" : {
@ -90,6 +98,7 @@
} }
}, },
"update_notification_update_normal_title_%@" : { "update_notification_update_normal_title_%@" : {
"comment" : "When an update is available, a notification is shown. This is the title for a normal priority update. The placeholder is for the application version, eg \"Update Available - 2.0\"",
"extractionState" : "manual", "extractionState" : "manual",
"localizations" : { "localizations" : {
"en" : { "en" : {

View File

@ -107,6 +107,26 @@
} }
} }
}, },
"copyable_click_to_copy_button" : {
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Click to Copy"
}
}
}
},
"copyable_copied" : {
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Copied"
}
}
}
},
"create_secret_cancel_button" : { "create_secret_cancel_button" : {
"localizations" : { "localizations" : {
"en" : { "en" : {

View File

@ -66,12 +66,12 @@ struct CopyableView: View {
) )
} }
var hoverText: String { var hoverText: LocalizedStringKey {
switch interactionState { switch interactionState {
case .hovering: case .hovering:
return "Click to Copy" return "copyable_click_to_copy_button"
case .clicking: case .clicking:
return "Copied" return "copyable_copied"
case .normal: case .normal:
fatalError() fatalError()
} }