Skip to content

Commit

Permalink
chore: move alert labels into locales
Browse files Browse the repository at this point in the history
  • Loading branch information
LazyAfternoons committed Jan 23, 2024
1 parent 1fcc506 commit f320e1c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions locales/en/index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3196,6 +3196,10 @@ features:
content: "Do you want to quit signing **{{dossierTitle}}**?"
cancel: "Quit signing"
confirm: "Keep signing"
alert:
title: "Do you want to interrupt the operation?"
confirm: "Yes, interrupt"
cancel: "No, go back"
checkService:
title: "Turn on messages"
content: "To receive the signed documents, you must turn on the setting that allows the service to send you messages. If you don't turn it on, you can complete the signature but you won't receive the signed documents."
Expand Down
4 changes: 4 additions & 0 deletions locales/it/index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3196,6 +3196,10 @@ features:
content: "Vuoi annullare la firma di **{{dossierTitle}}**?"
cancel: "Annulla la firma"
confirm: "Continua a firmare"
alert:
title: "Vuoi interrompere l'operazione?"
confirm: "Sì, interrompi"
cancel: "No, torna indietro"
checkService:
title: "Attiva i messaggi"
content: "Per ricevere i documenti firmati devi attivare l’opzione che consente al servizio di inviarti messaggi. Se non la attivi, puoi completare la firma ma non riceverai i documenti firmati."
Expand Down
6 changes: 3 additions & 3 deletions ts/features/fci/hooks/useFciAbortSignatureFlow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,14 @@ export const useFciAbortSignatureFlow = () => {
* Show an alert to confirm the abort signature flow.
*/
const showAlert = () => {
Alert.alert("Vuoi interrompere l’operazione?", undefined, [
Alert.alert(I18n.t("features.fci.abort.alert.title"), undefined, [
{
text: "Sì, interrompi",
text: I18n.t("features.fci.abort.alert.confirm"),
onPress: () => abortSignatureFlow(),
style: "cancel"
},
{
text: "No, torna indietro"
text: I18n.t("features.fci.abort.alert.cancel")
}
]);
};
Expand Down

0 comments on commit f320e1c

Please sign in to comment.