LoginSignup
3
0

More than 3 years have passed since last update.

IE11だとFullCalendar5.4.0の日本語化ができない?「SCRIPT1003: ':' がありません。」エラー

Last updated at Posted at 2020-12-08

こんな人向け

  • fullcalendar-5.4.0\lib\locales\ja.jsを使っていて、IE11でも表示させたい
  • FullCalendarを日本語化させて使いたい
  • 「SCRIPT1003: ':' がありません。」エラーが出る

image.png

修正箇所


moreLinkText(n) {
    return '' + n + ''
},

↓このように修正してください。

moreLinkText: function (n) {
    return '' + n + ''
}

省略するとIE11では使えません。

元のja.js

FullCalendar.globalLocales.push(function () {
  'use strict';
  var ja = {
    code: 'ja',
    buttonText: {
      prev: '',
      next: '',
      today: '今日',
      month: '',
      week: '',
      day: '',
      list: '予定リスト',
    },
    weekText: '',
    allDayText: '終日',
    moreLinkText(n) {
      return '' + n + ''
    },
    noEventsText: '表示する予定はありません',
  };
  return ja;
}());
3
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
0