Skip to content

Commit

Permalink
Merge pull request #165 from 0xsalah/patch-1
Browse files Browse the repository at this point in the history
Fix typo in README.md
  • Loading branch information
svobik7 authored Nov 12, 2023
2 parents 35223a3 + 60ec215 commit e1e4867
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ Even you are allowed to change this static context down in the code by calling `

When running Next.js as a standalone server for example in EC2 or docker container, the Router functionality breaks.
Since Next.js is ran as a basic Node.js server in a standalone mode, the Router class is shared for each page generation. As so, the Router.getPageHref() can return wrong values in the generation phase of the page.
in that case you always need to pass current `locale` param to `Router.getHref` function and do not use `Router.getPageHreg`. See more in https://github.com/svobik7/next-roots/issues/99.
in that case you always need to pass current `locale` param to `Router.getHref` function and do not use `Router.getPageHref`. See more in https://github.com/svobik7/next-roots/issues/99.

### GetLocaleFromHref

Expand Down Expand Up @@ -333,7 +333,7 @@ Following types are available for props above and can be imported from next-root

## 4. Translation files

Translation of URL paths is done in `i18n.js` of `i18n.ts` files by placing this file right next to the `page.js` of `page.ts` file and running `yarn roots`. There are two main ways how you can define the i18n file.
Translation of URL paths is done in `i18n.js` or `i18n.ts` files by placing this file right next to the `page.js` of `page.ts` file and running `yarn roots`. There are two main ways how you can define the i18n file.

### Static translations

Expand Down

1 comment on commit e1e4867

@vercel
Copy link

@vercel vercel bot commented on e1e4867 Nov 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.