Home

Awesome

🚀 Astro i18next 🌍

i18next components to help translate astro websites.

Status

Currently in development: missing tests, better docs and examples

Install

npm install astro-i18next
pnpm add astro-i18next
yarn add astro-i18next

Usage

Trans component

---
import { Trans } from "astro-i18next";
---

<Trans i18nKey="superCoolKey">
  This is a <strong>super cool</strong> sentence!
</Trans>
// en.json
{
  "superCoolKey": "This is a <0>super cool</0> sentence!"
}

Props

PropnameTypeDescription
i18nKeystringInternationalization key

License

MIT