intlayer-config
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseIntlayer Configuration
Intlayer配置
Configure Intlayer project settings and environment variables. Check these files to identify which locales are declared for the application, which helps in defining the appropriate content.
Supported configuration files:
intlayer.config.{ts|js|json|json5|jsonc|cjs|mjs}.intlayerrc
It acts as the central brain for your application's internationalization strategy. It is divided into several specialized sections that control everything from language support to AI-powered translations.
配置Intlayer项目设置与环境变量。查看这些文件以确定应用程序声明了哪些locales,这有助于定义合适的内容。
支持的配置文件:
intlayer.config.{ts|js|json|json5|jsonc|cjs|mjs}.intlayerrc
它是应用程序国际化策略的核心中枢,分为多个专门的部分,控制从语言支持到AI驱动翻译的所有内容。
Internationalization
国际化
This section defines your language footprint.
- Locales: Define which languages you support (e.g., English, French, Spanish).
- Default Locale: Set the fallback language if a user's preference isn't found.
此部分定义你的语言覆盖范围。
- Locales:定义你支持的语言(例如英语、法语、西班牙语)。
- Default Locale:如果未找到用户偏好的语言,设置回退语言。
Routing & middleware
路由与中间件
Controls how users navigate between different languages.
控制用户在不同语言之间的导航方式。
AI & Automation
AI与自动化
Intlayer integrates with major AI providers (OpenAI, Anthropic, Gemini, etc.) to automate your workflow.
Intlayer与主流AI提供商(OpenAI、Anthropic、Gemini等)集成,以自动化你的工作流程。
Content & Dictionaries
内容与词典
Manages how and where your translation files are handled.
- Import Mode: Choose between Static (faster performance), Dynamic (lazy loading), or Fetch (live updates from a CMS).
- Auto-Transformation: Automatically convert Markdown or HTML strings into processed components.
管理翻译文件的处理方式和存储位置。
- Import Mode:在Static(静态)(性能更快)、Dynamic(动态)(懒加载)或Fetch(获取)(从CMS实时更新)之间选择。
- 自动转换:自动将Markdown或HTML字符串转换为处理后的组件。
Editor & System
编辑器与系统
Settings for the visual workflow and internal plumbing.
可视化工作流程和内部机制的设置。
References
参考资料
Concepts
概念
- Configuration
- 配置
Packages
包
- Intlayer getConfiguration
- Intlayer getConfiguration