Skip to content
Merged
Show file tree
Hide file tree
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
8 changes: 8 additions & 0 deletions AI/GenAI-ChatBot-application-sample/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,14 @@ To get started, you need to configure one of the supported login providers. Conf
- CLERK_SECRET_KEY=YOUR_CLERK_SECRET_KEY
- NEXT_PUBLIC_CLERK_TEMPLATE=YOUR_CLERK_TEMPLATE

## Change the application UI language
The sample application uses the i18next library to add internationalization capability. To configure the application user interface to use a different language, follow these steps:

1. In the `.env.local` file, set the NEXT_PUBLIC_LANGUAGE variable to your selected language. The default language is en.
2. Copy any existing `genAi.json` file and create a new `genAi.json` file containing the UI text. Store the file in `src/locales/<YOUR_SELECTED_LANGUAGE>/`.
3. Translate all UI text in the `genAi.json` file to your preferred language.
4. Reload the sample application.

## Install the application
To install the sample application, run the following command:

Expand Down
112 changes: 56 additions & 56 deletions AI/GenAI-ChatBot-application-sample/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions AI/GenAI-ChatBot-application-sample/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,25 @@
"@types/react-redux": "^7.1.34",
"aws-amplify": "5.3.11",
"cross-env": "^7.0.3",
"html-react-parser": "^5.2.2",
"html-react-parser": "^5.2.3",
"i18next": "^24.2.3",
"i18next-resources-to-backend": "^1.2.1",
"moment": "^2.30.1",
"next": "15.2.2",
"next": "15.2.4",
"next-i18n-router": "^5.5.1",
"react": "^19",
"react-dom": "^19",
"react-i18next": "^15.4.1",
"react-redux": "^9.2.0",
"sass": "^1.85.1"
"sass": "^1.86.3"
},
"devDependencies": {
"@svgr/webpack": "^8.1.0",
"@types/node": "^22",
"@types/react": "^19",
"@types/react-dom": "^19",
"eslint": "^9",
"eslint-config-next": "15.2.2",
"eslint-config-next": "15.2.4",
"typescript": "^5"
}
}