我正在使用角度8和全日历组件的项目。我的问题是,当更改语言环境时,标题按钮仍保留为英文。
我的html:
<full-calendar defaultView="dayGridMonth" [plugins]="calendarPlugins" [events]="displayedEvents" locale="fr"
[header]="{
right: 'prev,next today',
center: 'title',
left: 'dayGridMonth,dayGridWeek,dayGridDay'
}">
</full-calendar>
.ts文件的发布有点复杂,但是我已经读过here,并且在他们的docs中,我需要导入locale-all.js
文件,但是不能正常工作。无论哪种情况,我都会收到此错误
Could not find a declaration file for module '@fullcalendar/core/locales-all.js'. 'node_modules/@fullcalendar/core/locales-all.js' implicitly has an 'any' type.
该文件存在,但似乎编译器正在搜索.d.ts
声明文件。
谢谢