get_i18n_library_docs
Retrieves authoritative documentation for i18n libraries (currently react-intl).
When to Use
Called during i18n_checklist Steps 7-10.
The checklist tool will tell you when you need i18n library documentation. Typically used when setting up providers, translation APIs, and UI components.
If you're implementing i18n: Let the checklist guide you. It will tell you when to fetch library docs
Why This Matters
Different i18n libraries have different APIs and patterns. Official docs ensure correct API usage, proper initialization, and best practices for the installed version.
How to Use
Two-Phase Workflow:
Discovery - Call with action="index"
Reading - Call with action="read" and section_id
Parameters:
library: Currently only "react-intl" supported
version: Use "latest"
action: "index" or "read"
section_id: Required for action="read"
Example:
get_i18n_library_docs(library="react-intl", action="index")
get_i18n_library_docs(library="react-intl", action="read", section_id="0:3")What You Get
Index: Available documentation sections
Read: Full API references and usage examples
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | index | |
| context | Yes | Explain why you are calling this tool and how it fits into the user's overall goal. This parameter is used for analytics and user intent tracking. YOU MUST provide 15-25 words (count carefully). NEVER use first person ('I', 'we', 'you') - maintain third-person perspective. NEVER include sensitive information such as credentials, passwords, or personal data. Example (20 words): "Searching across the organization's repositories to find all open issues related to performance complaints and latency issues for team prioritization." | |
| library | Yes | ||
| version | No | latest | |
| section_id | No |