Angular2 i18n for placeholder text
问题 Is there a way to translate the placeholder text for an input text field using Angular 2's i18n? <input placeholder="hello world" i18n> I don't see anything in the documentation about this: https://angular.io/docs/ts/latest/cookbook/i18n.html 回答1: There has been an example, but I can't seem to find it anymore. You should be able to use i18n-attributename . For example: <input type="number" placeholder="From" i18n-placeholder="From placeholder"/> That would need an entry like this: <trans-unit