Angular 角度i18n:将转换字符串转发到自己的组件

Angular 角度i18n:将转换字符串转发到自己的组件,angular,angular-i18n,Angular,Angular I18n,我有一个自己的组件,它看起来很简单: <mat-form-field class="example-full-width"> <mat-label>{{myLabel}}</mat-label> <input matInput placeholder="Ex. Pizza" value="Sushi"> </mat-form-field> 当我现在想要

我有一个自己的组件,它看起来很简单:

  <mat-form-field class="example-full-width">
    <mat-label>{{myLabel}}</mat-label>
    <input matInput placeholder="Ex. Pizza" value="Sushi">
  </mat-form-field>
当我现在想要将其包含在我的组件中时,我将用于HTML部分:

 <my-component [label]="'Favorite food'"></my-component>

我的问题:如何指定
标签
的内容,使其也能被翻译?它与i18n标签配合使用吗???或者我是否需要在组件中添加其他内容

 <my-component [label]="'Favorite food'"></my-component>