rubenv / angular-gettext-tools

Tools for extracting/compiling angular-gettext strings.
http://angular-gettext.rocketeer.be/
MIT License
39 stars 130 forks source link

Annotated strings #177

Open matthieusieben opened 6 years ago

matthieusieben commented 6 years ago

It would be nice to be able to detect strings to translate base on a special comment placed before instead of requiring to wrap into a gettext() function call.

e.g.

const myTranslatagleString = /* @ngTranslate */ "My String"
return gettextCatalog.getString(myTranslatagleString)
matthieusieben commented 6 years ago

Having to wrap the strings into a gettext function call has two problems: