Just starting out with Angular and facing the challenge of implementing localization in my project. I have a lot of input fields that need their placeholders translated. In my HTML, I'm trying to achieve this:
<input type="email" placeholder="{{ 'TRANSLATION_KEY' | translate }}" onfocus="this.placeholder=''" onblur="this.placeholder='{{ 'TRANSLATION_KEY' | translate }}'" required>
Unfortunately, it seems like this part of the code is not functioning as expected:(
onblur="this.placeholder='{{ 'TRANSLATION_KEY' | translate }}'"
Can anyone provide guidance on how to successfully set the translated value to the placeholder on blur? Any help would be greatly appreciated!