astro-i18n-next

0.1.3 • Public • Published

astro-i18n-next

This is an Astro integration that TODO:description

Usage


Prerequisites

TODO:

Installation

Install the integration automatically using the Astro CLI:

pnpm astro add astro-i18n-next
npx astro add astro-i18n-next
yarn astro add astro-i18n-next

Or install it manually:

  1. Install the required dependencies
pnpm add astro-i18n-next
npm install astro-i18n-next
yarn add astro-i18n-next
  1. Add the integration to your astro config
+import i18n from "astro-i18n-next";

export default defineConfig({
  integrations: [
+    i18n({ 
+			defaultLocale: "cn",
+			locales: ["cn", "ru", "en"],
+			routing:{
+				prefixDefaultLocale:true,
+				redirectToDefaultLocale:true,
+			},
+			domains:{
+				cn:'http://cn.a.com',
+				en:'http://en.a.com',
+			},
+		}),,
  ],
});

Configuration

TODO:configuration

Package Sidebar

Install

npm i astro-i18n-next

Weekly Downloads

4

Version

0.1.3

License

MIT

Unpacked Size

26.3 kB

Total Files

18

Last publish

Collaborators

  • alpiny