Angular 角度:星云日历:如何用自定义文本替换年和月部分?

Angular 角度:星云日历:如何用自定义文本替换年和月部分?,angular,nebular,Angular,Nebular,我用的是角星云图书馆的日历组件。我需要翻译月名和周天数,所以我尝试使用日历属性monthCellComponent和yearCellComponent。但一切都没有改变 这是我的代码-日历显示组件: <nb-calendar [(date)]="date" [showHeader]="false" [dayCellComponent]="dayCellComponent" [yearCellComponent]="yearCellComponent"> &l

我用的是角星云图书馆的日历组件。我需要翻译月名和周天数,所以我尝试使用日历属性monthCellComponent和yearCellComponent。但一切都没有改变

这是我的代码-日历显示组件:

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

自定义年份单元格组件

export class CalendarCustomYearCellComponent extends  NbCalendarYearCellComponent<Date>{}
导出类CalendarCustomYearCellComponent扩展了NbCalendarYearCellComponent{}
自定义年份单元格注释的Html文件具有虚拟文本以替换月份名称


-需要在此处更改月份名称

我查看了GitHub问题,发现。希望能有帮助