Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

translate confirm modal button #96

Open
mdeglas opened this issue Jul 26, 2021 · 0 comments
Open

translate confirm modal button #96

mdeglas opened this issue Jul 26, 2021 · 0 comments

Comments

@mdeglas
Copy link

mdeglas commented Jul 26, 2021

Hi, I'm trying to use confirm modal. All works well but I block on how to translate the buttons text.

I have set the option label to "Yes" and in the modal I would like to replace in the 2 buttons the text "No" and "Yes" by "Non" and "Oui".

How can I do that ?

var options = {
          label: 'Yes',
          message: "Ma question ?",
          title: "Mon titre",
          size: eModal.size.md
        };

        eModal.confirm(options)
          .then(confirmCallback);

thanks for your help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant