CtrlK
CommunityDocumentationLog inGet started
Tessl Logo

tessl/npm-i18next-client

tessl install tessl/npm-i18next-client@1.11.0

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

Agent Success

Agent success rate when using this tile

69%

Improvement

Agent success rate improvement when using this tile compared to baseline

1.08x

Baseline

Agent success rate without this tile

64%

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
    }
  ]
}

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
npmpkg:npm/i18next-client@1.11.x
tile.json