0.1.3 • Published 11 months ago

astro-i18n-next v0.1.3

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

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

0.1.3

11 months ago

0.1.2

11 months ago

0.1.1

11 months ago

0.1.0

11 months ago

0.0.2

11 months ago

0.0.1

11 months ago