Calendar actually supports a bunch of languages already. Translations are handled by the intl module: http://yuilibrary.com/yui/docs/intl/
How to translate YUI Calendar widget?
문제
I am using YUI calendar widget (http://yuilibrary.com/yui/docs/calendar/calendar-simple.html) and cannot find any way how to change month and day names to another language.
Can anybody help, please?
Thanks.
해결책
다른 팁
YUI's Calendar module currently supports many languages for Internationalization. You can use the feature by specifying lang
option to YUI config object. Here is an example.
YUI({lang: "ja"}).use("calendar", function (Y) {
var calendar = new Y.Calendar({
contentBox: "#calendar"
});
calendar.render();
});
제휴하지 않습니다 StackOverflow