Creation:2026-01-21Last update:2026-01-21
将此文档参考到您的 AI 助手ChatGPTClaudeDeepSeekGoogle AI modeGeminiPerplexityMistralGrok
使用您最喜欢的AI助手总结文档,并引用此页面和AI提供商
版本历史
- "统一所有导出项的文档"v8.0.02026/1/21
此页面的内容已使用 AI 翻译。
查看英文原文的最新版本Edit this doc
If you have an idea for improving this documentation, please feel free to contribute by submitting a pull request on GitHub.
GitHub link to the documentationCopy
Copy doc Markdown to clipboard
astro-intlayer 包
astro-intlayer 包提供将 Intlayer 集成到 Astro 应用所需的工具。它配置基于区域设置(locale)的路由和字典管理。
安装
bash
复制代码
复制代码到剪贴板
npm install astro-intlayer导出
集成
astro-intlayer 包为你的项目提供一个用于在 Astro 中设置 Intlayer 的集成。
导入:
tsx
复制代码
复制代码到剪贴板
import "astro-intlayer";或将其添加到 astro.config.mjs:
ts
复制代码
复制代码到剪贴板
export default defineConfig({ integrations: [intlayer()],});显示表格的所有内容
在弹窗中打开表格以清晰地查看所有数据
| 函数 | 说明 |
|---|---|
intlayer | 在你的项目中设置 Intlayer 的 Astro 集成。 |