Localization for ion-select buttons (OK and Cancel)


#1

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)


#2

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">
  ...
</ion-select>

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.


#3

Thank you it’s work 100%


#4

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…


#5

Perfect thank you for help—: