CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-flatpickr

A lightweight, powerful javascript datetime picker

95

1.06x
Overview
Eval results
Files

rubric.jsonevals/scenario-2/

{
  "context": "This criteria evaluates how effectively the engineer uses flatpickr's localization system to implement multi-language date display. The focus is on proper usage of locale configuration, locale imports, and dynamic locale switching capabilities provided by the flatpickr package.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Flatpickr initialization",
      "description": "Correctly initializes flatpickr instance using the flatpickr() constructor function on the input element",
      "max_score": 15
    },
    {
      "name": "Locale imports",
      "description": "Properly imports locale files (e.g., from 'flatpickr/dist/l10n/de.js', 'flatpickr/dist/l10n/ja.js') for German and Japanese languages",
      "max_score": 20
    },
    {
      "name": "Locale configuration",
      "description": "Uses the 'locale' configuration option to set the initial locale when initializing the flatpickr instance",
      "max_score": 20
    },
    {
      "name": "Dynamic locale switching",
      "description": "Implements locale switching using the flatpickr instance's set() method with the 'locale' parameter to change languages at runtime",
      "max_score": 25
    },
    {
      "name": "Date format configuration",
      "description": "Configures date formatting using the 'dateFormat' option with locale-appropriate format tokens (e.g., 'F j, Y' for US English, 'j. F Y' for German)",
      "max_score": 15
    },
    {
      "name": "Return object structure",
      "description": "Returns an object with a changeLocale method that properly encapsulates the locale switching functionality",
      "max_score": 5
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-flatpickr

tile.json