SuperAPI AI 工具集

intlayer-astro

前端与建站

查看项目

更新于 10-15 17:23

技能介绍

用途:将 Intlayer 国际化方案接入 Astro 应用,面向需要为 Astro 站点配置 i18n、并在组件中读取多语言字典的场景。

主要能力:支持在 Astro 组件中通过 getIntlayer 按字典键获取内容。示例:\n---\nimport { getIntlayer } from "astro-intlayer";\nconst content = await getIntlayer("my-dictionary-key");\n---\n<h1>{content.title}</h1>\n说明该调用为异步,可配合 Astro 组件服务端渲染使用。

使用方式:当用户要求“setup Astro i18n”或在 Astro 组件中使用 getIntlayer 时使用本技能。资料提供了 Intlayer 网站、文档、Astro 文档及 Intlayer Exports、Astro Intlayer Exports 等参考入口,但未提供完整安装命令与逐步配置流程。

适用场景:Astro 项目的多语言内容管理、组件内字典读取与国际化配置。

限制:现有资料未说明支持版本、依赖要求、完整配置项、平台支持、收费与价格信息,暂未提供;实际接入前请以官方文档为准。