Localization for ion-select buttons (OK and Cancel)

How can I display the plugin buttons of ion-select (OK and Cancel) according to the current language?
I want the words “ok” and “cancel” to appear tranlated to the current language)


In docs said:

By default, the two buttons read Cancel and OK. Each button’s text can be customized using the cancelText and okText attributes:

<ion-select okText="Okay" cancelText="Dismiss">

The action sheet interface does not have an OK button, clicking on any of the options will automatically close the overlay and select that value.


Thank you it’s work 100%

So there is any way to set it globaly for al selects? (May be inheriting ion-select?) It is boring repeating the same code in all ion-selects I use in my app…


Perfect thank you for help—: