Skip to content

Commit

Permalink
docs: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinccbsg committed Mar 21, 2024
1 parent 153b5e3 commit e8fe5cf
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ function handleBrowserRequest(
Once you have these files modified you can include your route for example the `_index.tsx` as `($lang)._index.tsx`, and use Paraglide.

```tsx
import { Link } from '@remix-run/react';
import * as m from '<YOUR_PARAGLIDE_DIR>/messages';

export default function Index() {
Expand All @@ -236,25 +237,27 @@ export default function Index() {
<p>{m.description()}</p>
<ul>
<li>
<a
href="/en"
<Link
to="/en"
reloadDocument
>
EN
</a>
</Link>
</li>
<li>
<a
href="/es"
<Link
to="/es"
reloadDocument
>
ES
</a>
</Link>
</li>
</ul>
</div>
);
}
```

*Recommendation:* Install [Sherlock extension](https://marketplace.visualstudio.com/items?itemName=inlang.vs-code-extension).
Check out our [examples](https://github.com/BRIKEV/remix-paraglidejs/tree/main/examples) to review how to use links without reloadDocument or a page without the `($lang)`.

Check out our [examples](https://github.com/BRIKEV/remix-paraglidejs/tree/main/examples).
*Recommendation:* Install [Sherlock extension](https://marketplace.visualstudio.com/items?itemName=inlang.vs-code-extension).

0 comments on commit e8fe5cf

Please sign in to comment.