aFuzzyBear / astro-i18n

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Astro Starter Kit: i18n

An Astro only i18n implementation that is easy to use, and highly customisable.

npm init astro -- --template i18n

πŸ”Ž Project Overview

src/
β”œβ”€β”€ components
β”‚   β”œβ”€β”€ Footer.astro
β”‚   β”œβ”€β”€ HeadCommon.astro
β”‚   β”œβ”€β”€ HeadSEO.astro
β”‚   └── Topnav.astro
β”œβ”€β”€ config.ts
β”œβ”€β”€ layouts
β”‚   β”œβ”€β”€ BaseLayout.astro
β”‚   β”œβ”€β”€ HomeLayout.astro
β”‚   └── ProductsLayout.astro
└── pages
    β”œβ”€β”€ de
    β”‚   β”œβ”€β”€ home.md
    β”‚   └── products.md
    β”œβ”€β”€ en
    β”‚   β”œβ”€β”€ home.md
    β”‚   └── products.md
    β”œβ”€β”€ index.astro
    └── no
        β”œβ”€β”€ home.md
        └── products.md

🧞 Commands

All commands are run from the root of the project, from a terminal:

Command Action
npm install Installs dependencies
npm run dev Starts local dev server at localhost:3000
npm run build Build your production site to ./dist/
npm run preview Preview your build locally, before deploying

πŸ‘€ Want to learn more?

Feel free to check our documentation or jump into our Discord server.

About


Languages

Language:Astro 79.8%Language:TypeScript 19.3%Language:JavaScript 0.8%