מחבר:
הפנו את עוזר ה-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 של המסמך ללוח
useDictionary Hook Documentation
The useDictionary hook allows you to process an object that looks like a dictionary (containing keys and content) and handle translations, enumerations, etc., within it. Unlike useIntlayer, which is designed to work with generated dictionary declarations, useDictionary is more flexible and can be used with any object that follows the dictionary structure.
Usage
tsx
העתקת קוד
העתקת הקוד ללוח
Description
The hook performing the following tasks:
- Locale Detection: It uses the current locale from the
IntlayerProvidercontext. - Translation Processing: it resolves the content based on the detected locale, processing any
t(),enu(), etc., definitions found within the object. - Flexible Content: It works directly with the object passed to it, making it ideal for dynamic content or objects that are not part of the standard pre-built dictionaries.
