A.Sana
A.Sana

Reputation: 95

How can I add i18n in an input plaeholder?

I have some inputs with placeholders. like that:

<input placeholder="Filter">

But, I have to respect the i18n method. i18n-placeholder is not allowed with Angular 6

What is the right way?

Upvotes: 0

Views: 508

Answers (1)

ilyas shabi
ilyas shabi

Reputation: 194

placeholder="{{ 'Filter'| translate }}"

Upvotes: 1

Related Questions