CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-i18next-client

DEPRECATED client-side JavaScript internationalization library with translation, pluralization, and localization support.

69

1.07x
Overview
Eval results
Files

rubric.jsonevals/scenario-5/

{
  "context": "This criteria evaluates how well the engineer uses i18next's plugin system to create and register a custom logger plugin. The focus is on proper implementation of the plugin interface, registration with i18next using the use() method, and integration with i18next's event system.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Plugin type property",
      "description": "The TranslationLogger class has a 'type' getter or property that returns 'logger' to identify itself as a logger plugin to i18next",
      "max_score": 15
    },
    {
      "name": "Plugin init method",
      "description": "The TranslationLogger class implements an init() method that accepts services and options parameters, following i18next's plugin initialization pattern",
      "max_score": 15
    },
    {
      "name": "Logger methods",
      "description": "The TranslationLogger implements log(), warn(), and error() methods which are the standard methods expected of an i18next logger plugin",
      "max_score": 10
    },
    {
      "name": "Plugin registration",
      "description": "The initializeI18n() function uses i18next.use() method to register the TranslationLogger plugin with the i18next instance",
      "max_score": 20
    },
    {
      "name": "i18next initialization",
      "description": "The initializeI18n() function calls i18next.init() with appropriate configuration to initialize the i18next instance after registering plugins",
      "max_score": 15
    },
    {
      "name": "Event listener integration",
      "description": "The code uses i18next's event system (e.g., on() method) to listen for events like 'loaded', 'missingKey', or similar events to track translation lookups and missing keys",
      "max_score": 20
    },
    {
      "name": "Translation resource setup",
      "description": "The initializeI18n() function adds translation resources to i18next using methods like addResourceBundle() or through init configuration to enable translation functionality",
      "max_score": 5
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-i18next-client

tile.json