Fix copyable view

This commit is contained in:
Max Goedjen 2024-01-05 12:36:25 -08:00
parent eb4555fd6f
commit d49b23e563
No known key found for this signature in database
2 changed files with 23 additions and 3 deletions

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" : {
"localizations" : {
"en" : {

View File

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