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-4/

{
  "context": "This criteria evaluates how effectively the engineer uses i18next's context-based translation features to implement a greeting system with contextual variations. The focus is on proper use of the context parameter in translations, correct initialization and configuration, and appropriate use of interpolation for dynamic content.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "i18next initialization",
      "description": "Uses i18next.init() or i18next.use().init() to properly initialize the i18next instance with appropriate configuration options",
      "max_score": 15
    },
    {
      "name": "Translation resources setup",
      "description": "Defines translation resources for both English and Spanish languages with proper structure (using addResourceBundle, addResources, or inline resources in init)",
      "max_score": 15
    },
    {
      "name": "Context parameter usage",
      "description": "Uses the context option when calling the t() function to select context-specific translation variants based on formality and time of day",
      "max_score": 25
    },
    {
      "name": "Context key structure",
      "description": "Structures translation keys with context suffixes (e.g., 'greeting_formal_morning', 'greeting_informal_evening') following i18next's context conventions with appropriate context separator",
      "max_score": 20
    },
    {
      "name": "Interpolation for names",
      "description": "Uses i18next's interpolation feature ({{variable}} syntax) in translations to dynamically insert the person's name into greeting messages",
      "max_score": 15
    },
    {
      "name": "Language switching",
      "description": "Uses i18next.changeLanguage() or passes lng option to t() function to retrieve translations in the requested language",
      "max_score": 10
    }
  ]
}

Version

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