Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .changeset/stale-walls-enjoy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
26 changes: 15 additions & 11 deletions packages/cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,20 +51,24 @@
Install once:

```bash
npm install lingo.dev
npm install @lingo.dev/compiler
```

Enable in your build config:

```js
import lingoCompiler from "lingo.dev/compiler";

const existingNextConfig = {};

export default lingoCompiler.next({
sourceLocale: "en",
targetLocales: ["es", "fr"],
})(existingNextConfig);
```ts
import type { NextConfig } from "next";
import { withLingo } from "@lingo.dev/compiler/next";

const nextConfig: NextConfig = {};

export default async function (): Promise<NextConfig> {
return await withLingo(nextConfig, {
sourceLocale: "en",
targetLocales: ["es", "fr"],
models: "lingo.dev",
});
}
```

Run `next build` and watch Spanish and French bundles pop out ✨
Expand Down Expand Up @@ -165,7 +169,7 @@ We're community-driven and love contributions!

## ⭐ Star History

If you like what we're doing, give us a ⭐ and help us reach 5,000 stars! 🌟
If you like what we're doing, give us a ⭐ and help us reach 6,000 stars! 🌟

[![Star History Chart](https://api.star-history.com/svg?repos=lingodotdev/lingo.dev&type=Date)](https://www.star-history.com/#lingodotdev/lingo.dev&Date)

Expand Down