angular-gettext icon indicating copy to clipboard operation
angular-gettext copied to clipboard

DEBUG mode doesn't apply [MISSING]: for controller translations

Open JoeHarstad opened this issue 7 years ago • 1 comments

When you do the following in a controller... var sometext = gettext("I am some text to translate"); ...and then add that variable to an HTML template like such <p>{{$ctrl.sometext}}</p> There is no indication of [MISSING]: being applied to these translated strings.

JoeHarstad avatar Nov 10 '17 17:11 JoeHarstad

Try this in your HTML: <p>{{$ctrl.sometext | translate}}</p>

gettext() only marks it for extraction, it still needs to be translated later on.

rubenv avatar Nov 15 '17 16:11 rubenv