astro-i18n-next
v0.1.3
Published
astro i18n integration
Downloads
12
Maintainers
Readme
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:
- Install the required dependencies
pnpm add astro-i18n-next
npm install astro-i18n-next
yarn add astro-i18n-next
- 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