Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Update app_router.mdx #721

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
13 changes: 7 additions & 6 deletions js-sdk/integrations/react/next/app_router.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ Follow the below instructions to learn to implement localization to your Next.js

1. An existing Next.js project.
2. An existing [project](../../../../platform/getting_started/creating_project) on Tolgee platform with at least 2 languages. This guide uses English (en) and Czech (cs).
3. Add localization keys and translations for both the languages. This guide uses the key name `hello_world`.
4. [API key](../../../../platform/account_settings/api_keys_and_pat_tokens) of your Tolgee project.
3. Added localization keys and translations for both the languages in the Tolgee Platform. This guide uses the key name `hello_world` in `en` an `cs` languages.
4. [Exported localization data](../../../../platform/projects_and_organizations/export) in json format and stored in `src/i18n/<lang>.json`
4. [Created API key](../../../../platform/account_settings/api_keys_and_pat_tokens) of your Tolgee Platform project.

## Install the required packages

Expand All @@ -40,14 +41,14 @@ The folder structure of your project should resemble the following:

```
├── next.config.js
├── messages
│ ├── en.json
│ └── cs.json
├── .env.development.local
└── src
├── middleware.ts
├── navigation.ts
├── i18n
│ └── request.ts
│ ├── en.json
│ ├── cs.json
│ └── request.ts
├── tolgee
│ ├── shared.ts
│ ├── client.tsx
Expand Down
Loading