📔 Localize
This Astro integration
allows you to translate your
components using InLang.
There are two ways to add integrations to your project. Let's try the most convenient option first!
Astro includes a CLI tool for adding first party integrations: astro add
. This
command will:
- (Optionally) Install all necessary dependencies and peer dependencies
- (Also optionally) Update your
astro.config.*
file to apply this integration
To install Localize
, run the following from your project directory and follow
the prompts:
Using NPM:
npx astro add inlang-astro
Using Yarn:
yarn astro add inlang-astro
Using PNPM:
pnpx astro add inlang-astro
First, install the Localize
integration like so:
npm install -D -E inlang-astro
Then, apply this integration to your astro.config.*
file using the
integrations
property:
astro.config.ts
import inlang from "inlang-astro";
export default { integrations: [inlang()] };
astro.config.ts
import inlang from "inlang-astro";
export default {
integrations: [
inlang({
Logger: 0,
}),
],
};
See CHANGELOG.md
for a history of changes to this integration.