0

Angular nebular ライブラリのカレンダー コンポーネントを使用しています。月名と曜日を翻訳する必要があるので、カレンダーのプロパティである monthCellComponent と yearCellComponent を使ってみました。しかし、何も変わりません。

これは私のコードです - コンポーネントを表示するカレンダー:

<nb-calendar [(date)]="date" [showHeader]="false" 
            [dayCellComponent]="dayCellComponent" [yearCellComponent]="yearCellComponent">
</nb-calendar>

カスタムの年セル コンポーネント

export class CalendarCustomYearCellComponent extends  NbCalendarYearCellComponent<Date>{}

カスタムの年セル コメントの HTML ファイルには、月名を置き換えるダミー テキストがあります。

ここに画像の説明を入力

-ここで月名を変更する必要があります

4

1 に答える 1