Creation:2026-01-21Last update:2026-01-21

    Gói astro-intlayer

    Gói astro-intlayer cung cấp các công cụ cần thiết để tích hợp Intlayer vào các ứng dụng Astro. Nó cấu hình định tuyến theo locale và quản lý từ điển.

    Cài đặt

    bash
    npm install astro-intlayer

    Các export

    Tích hợp

    Gói astro-intlayer cung cấp integration cho Astro để thiết lập Intlayer trong dự án của bạn.

    Nhập:

    tsx
    import "astro-intlayer";

    hoặc thêm vào astro.config.mjs:

    ts
    export default defineConfig({  integrations: [intlayer()],});
    Hàm Mô tả
    intlayer Integration cho Astro để thiết lập Intlayer trong dự án của bạn.