I'd like to bind an expression to button text that checks whether edit mode is enabled and based on that selects a string to translate and display. Here is my attempt:
<button ion-button block outline color="primary" type="submit" >{{editMode ? "'EDIT_USER' | translate" : "'ADD_USER' | translate" }}</button>
This is the output text for the button - the string isn't translated and shown, but the literal value is shown:
'ADD_USER' | translate
Is there any way not to show the literal value but make it translate the string and then show it on the button?
{{(editMode ? 'EDIT_USER':'ADD_USER') | translate}}