מחבר:
הפנו את עוזר ה-AI המועדף עליכם למסמך הזהChatGPTClaudeDeepSeekGoogle AI modeGeminiPerplexityMistralGrok
שאלו את שאלתכם וקבלו סיכום של המסמך על ידי הפניה לדף הזה ולספק ה-AI שתבחרו
היסטוריית גרסאות
- "Init doc"v9.5.519.9.2026
התוכן של הדף הזה תורגם באמצעות AI.
צפייה בגרסה האחרונה של התוכן המקורי באנגליתעריכת המסמך הזה
אם יש לכם רעיון לשיפור התיעוד הזה, אל תהססו לתרום על ידי הגשת Pull Request ב-GitHub.
קישור GitHub לתיעודנוצר:2026-09-19עדכון אחרון:2026-09-19
העתקה
העתקת ה-Markdown של המסמך ללוח
Intlayer Context Documentation
In remix-intlayer, Intlayer is the RequestContext key used to access internationalization state within Remix 3 request handlers.
Usage
When the intlayer() middleware runs, it stores an IntlayerState object in the request context under the Intlayer key. You can retrieve it inside any route handler:
src/server.ts
העתקת קוד
העתקת הקוד ללוח
You can also access it using the direct property shorthand context.intlayer:
ts
העתקת קוד
העתקת הקוד ללוח
IntlayerState Structure
The IntlayerState object contains:
הצגת כל תוכן הטבלה
פתיחת הטבלה בחלון כדי לראות את כל תוכן הנתונים בבירור
| Property | Type | Description |
|---|---|---|
locale | DeclaredLocales | The locale resolved for the current request. |
defaultLocale | DeclaredLocales | The fallback locale defined in intlayer.config.ts. |
availableLocales | DeclaredLocales[] | The list of all supported locales configured for the project. |
