Skip to content

Confirm Dialog change and localize buttons text #60

Discussion options

You must be logged in to vote

Hello,

For ConfirmDialog to work, the require method of the $confirm instance that does all the configuration must be called. This is where the button labels can be changed. According to your question, these are acceptLabel and rejectLabel.

this.$confirm.require({
       message: 'Are you sure you want to proceed?',
       acceptLabel: '***',
       rejectLabel: '***'
});

If you are already using PrimeVue Locale, just change the accept and reject options.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tugcekucukoglu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants