Skip to content

Commit

Permalink
docs(readme): add another generic localized link example
Browse files Browse the repository at this point in the history
  • Loading branch information
openscript committed Feb 13, 2023
1 parent 71e12cd commit 18151c1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,18 @@ With the built-in `<GenericLocalizedLink>` component it's possible to use other
</GenericLocalizedLink>
```

Another example with `<AniLink>`:

```jsx
<GenericLocalizedLink to="/imprint">
{(args) => (
<AniLink fade to={args.to}>
Go to Page 4
</AniLink>
)}
</GenericLocalizedLink>
```

### `createPage()`

When you create pages programmatically with `createPage()` by default the page will only try to set the locale and prefix to the context. With the following options you can instruct the plugin to internationalize the context further:
Expand Down

0 comments on commit 18151c1

Please sign in to comment.