CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-formatjs--intl-localematcher

Intl.LocaleMatcher ponyfill providing comprehensive locale matching algorithms with support for 'lookup' and 'best fit' strategies

94

1.09x
Overview
Eval results
Files

rubric.jsonevals/scenario-5/

{
  "context": "This criteria evaluates how effectively the engineer uses @formatjs/intl-localematcher's Unicode extension processing capabilities to parse locale strings and extract extension values for calendar, numbering system, and hour cycle, focusing on proper use of the package's extension handling APIs.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Locale object creation",
      "description": "Uses Intl.Locale or the package's locale parsing capabilities to properly parse the locale string with Unicode extensions",
      "max_score": 25
    },
    {
      "name": "Calendar extraction",
      "description": "Correctly extracts the calendar (ca) Unicode extension value using the package's extension access methods or properties (e.g., locale.calendar or getUnicodeExtension)",
      "max_score": 15
    },
    {
      "name": "Numbering system extraction",
      "description": "Correctly extracts the numbering system (nu) Unicode extension value using the package's extension access methods or properties (e.g., locale.numberingSystem or getUnicodeExtension)",
      "max_score": 15
    },
    {
      "name": "Hour cycle extraction",
      "description": "Correctly extracts the hour cycle (hc) Unicode extension value using the package's extension access methods or properties (e.g., locale.hourCycle or getUnicodeExtension)",
      "max_score": 15
    },
    {
      "name": "Options priority",
      "description": "Implements correct priority where user-provided options override Unicode extension values, following the package's ResolveLocale specification behavior",
      "max_score": 20
    },
    {
      "name": "Null handling",
      "description": "Returns null for extension values that are not present in the locale string, correctly handling locales without Unicode extensions",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-formatjs--intl-localematcher

tile.json