0

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?

A.Sana
  • 95
  • 2
  • 14

1 Answers1

1
placeholder="{{ 'Filter'| translate }}"
ilyas shabi
  • 194
  • 1
  • 7
  • thanks for response! I followed this tutorial https://www.codeandweb.com/babeledit/tutorials/how-to-translate-your-angular6-app-with-ngx-translate but an error remains in place "unresolved pipe translate" – A.Sana May 14 '19 at 17:38
  • the error is "The pipe 'translate' could not be found" – A.Sana May 15 '19 at 04:09
  • Thank you, your response resolved my issue. I import TranslateModule in my src/reusables/reusables.module.ts and change, in package.json, "rxjs": from "^6.5.2" to "6.0.0" – A.Sana May 15 '19 at 07:16