<app-common-dialog [dialogContent]="dialogContent" [dialogRef]="dialogRef">
  <ng-template #dialogContent>
    <form appFormSubmit (ngSubmit)="create()" [formGroup]="addTemplateForm" layoutDirection="column">
      <mat-form-field>
        <mat-label i18n>Language</mat-label>
        <mat-select formControlName="language" placeholder="Language" i18n-placeholder>
          <mat-option *ngFor="let language of data.availableLanguages"
                      [value]="language.language_code">
            {{language.language_display}}
          </mat-option>
        </mat-select>
      </mat-form-field>
    </form>
  </ng-template>
</app-common-dialog>
