Skip to content

Commit

Permalink
chore: documentation fixes (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
QuiiBz authored Jul 20, 2023
1 parent 4dd92a6 commit be928b8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/next-international/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export const { useI18n, useScopedI18n, I18nProviderClient } = createI18nClient({
// locales/server.ts
import { createI18nServer } from 'next-international/server'

export const { getI18n, getScopedI18n, I18nProviderServer, getStaticParams } = createI18nServer({
export const { getI18n, getScopedI18n, getStaticParams } = createI18nServer({
en: () => import('./en'),
fr: () => import('./fr')
})
Expand Down Expand Up @@ -224,6 +224,7 @@ export const config = {

```tsx
// Client Component
'use client'
import { useI18n, useScopedI18n } from '../../locales/client'

export default function Page() {
Expand Down Expand Up @@ -343,6 +344,7 @@ Then use it in your components:

```tsx
// Client Component
'use client'
import { useScopedI18n } from '../../locales/client'

export default function Page() {
Expand All @@ -357,7 +359,7 @@ export default function Page() {
)
}

// Server component
// Server Component
import { getScopedI18n } from '../../locales/server'

export default async function Page() {
Expand Down Expand Up @@ -469,6 +471,7 @@ export const {
Then use these hooks:

```tsx
'use client'
// Client Component
import { useChangeLocale, useCurrentLocale } from '../../locales/client'

Expand Down

0 comments on commit be928b8

Please sign in to comment.