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

{
  "context": "This criteria evaluates how effectively the engineer uses i18next's translation API, specifically the t function and initialization methods. It assesses proper use of core translation features including namespace handling, key resolution, fallback mechanisms, and default values.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "i18next initialization",
      "description": "Uses i18next.init() or i18next.createInstance() to properly initialize the i18next instance with appropriate configuration options (lng, resources, ns, defaultNS, etc.)",
      "max_score": 20
    },
    {
      "name": "Translation resources",
      "description": "Adds translation resources for multiple languages and namespaces using the resources option in init(), or using addResourceBundle() or addResources() methods",
      "max_score": 15
    },
    {
      "name": "Basic t function",
      "description": "Uses the t() function to retrieve basic translations by key, demonstrating proper key syntax and return value handling",
      "max_score": 15
    },
    {
      "name": "Namespace specification",
      "description": "Uses namespace separator (colon ':') in keys or namespace option to access translations from specific namespaces (e.g., t('errors:validation.required') or t('validation.required', { ns: 'errors' }))",
      "max_score": 15
    },
    {
      "name": "Nested key access",
      "description": "Accesses nested translation keys using dot notation (e.g., t('welcome.message')) to retrieve values from hierarchical translation structures",
      "max_score": 10
    },
    {
      "name": "Default value option",
      "description": "Uses the defaultValue option in the t() function to provide fallback text when translations are missing (e.g., t('key', { defaultValue: 'fallback text' }))",
      "max_score": 15
    },
    {
      "name": "Fallback keys",
      "description": "Uses an array of keys as the first argument to t() to implement fallback key behavior, where multiple keys are tried in order (e.g., t(['premium.feature', 'basic.feature']))",
      "max_score": 10
    }
  ]
}

Version

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