מחבר:
הפנו את עוזר ה-AI המועדף עליכם למסמך הזהChatGPTClaudeDeepSeekGoogle AI modeGeminiPerplexityMistralGrok
שאלו את שאלתכם וקבלו סיכום של המסמך על ידי הפניה לדף הזה ולספק ה-AI שתבחרו
היסטוריית גרסאות
- "Unified documentation for all exports"v7.5.1421.1.2026
התוכן של הדף הזה תורגם באמצעות AI.
צפייה בגרסה האחרונה של התוכן המקורי באנגליתעריכת המסמך הזה
אם יש לכם רעיון לשיפור התיעוד הזה, אל תהססו לתרום על ידי הגשת Pull Request ב-GitHub.
קישור GitHub לתיעודנוצר:2026-01-21עדכון אחרון:2026-09-27
העתקה
העתקת ה-Markdown של המסמך ללוח
useIntlayer Hook Documentation
The useIntlayer hook allows you to retrieve localized content from a dictionary using its key. It is based on useDictionary but automatically injects an optimized version of the dictionary from the generated declarations.
Usage
tsx
העתקת קוד
העתקת הקוד ללוח
Description
The hook performing the following tasks:
- Locale Detection: It uses the current locale from the
IntlayerProvidercontext. - Dictionary Injection: it automatically injects the content of the dictionary corresponding to the provided key, using the optimized declarations generated by the Intlayer compiler.
- Translation Processing: it resolves the content based on the detected locale, processing any
t(),enu(), etc., definitions found within the dictionary.
