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)

3 Likes

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.

6 Likes

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…

5 Likes

Perfect thank you for help—: