1
0
spogulis no https://github.com/maxgoedjen/secretive.git synced 2026-03-19 15:57:22 +01:00

Fix copyable view

Šī revīzija ir iekļauta:
Max Goedjen
2024-01-05 12:36:25 -08:00
vecāks eb4555fd6f
revīzija d49b23e563
2 mainīti faili ar 23 papildinājumiem un 3 dzēšanām

Parādīt failu

@@ -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" : {

Parādīt failu

@@ -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()
} }