I followed this example:
It changes the language but the weekdays stay the same:
Only changing
eventSettings: MbscEventcalendarOptions = {
locale: localeEn,
to
eventSettings: MbscEventcalendarOptions = {
locale: localeDe,
brings the right translastion for the weekdays
Hello @Bastifix
I’m not sure that I understand how did you use our demo to reproduce this issue.
However, as I understand, you managed to solve it by setting the locale
option properly.
No, I use in Angular:
localeStr = 'en';
localeAll = locale;
and in HTML:
[locale]="localeAll[localeStr]"
with that I can change the language.
BUT the weekdays are not changing the language!
When I change the settings in the code from
eventSettings: MbscEventcalendarOptions = {
locale: localeEn,
to
eventSettings: MbscEventcalendarOptions = {
locale: localeDe,
it changes the weekdays. So the correct translated weekdays are there but don’t change when changing the language the normal way via
localeStr
Naturally I also want the weekdays translated in the selected language
Zsombor
September 7, 2022, 5:41am
4
As we discussed on the other thread, the problem was that you copied this code from the demo:
[resourceTemplate]="resourceTemp" [dayTemplate]="dayTemp"
but never used them. It worked with those as well, but after removing that code part the weekdays are translated correctly.