JSFiddle - React, Tailwind, and code Playground
HTML
<div ng-app="myApp" ng-controller="myCtrl">
<textarea type="email" placeholder="{{!lectura ? placeholder : ''}}" ng-focus="setPlaceholder()" ng-blur="!lectura ? setPlaceholder('TRANSLATION_KEY'):''" required ng-readonly="{{lectura}}"></textarea>
</div>
JavaScript
angular.module('myApp', [])
.controller('myCtrl', function($scope, $filter) {
$scope.placeholder = $filter('translate')('TRANSLATION_KEY');
$scope.lectura = false;
$scope.setPlaceholder = function(data) {
$scope.placeholder = $filter('translate')(data);
};
})
.filter('translate', function() {
return function(data) {
return data;
};
});