Skip to content

Commit 3147105

Browse files
authored
Merge pull request #231 from NetApp/bugfix/WLMAI-1704---Update-packages-on-the-external-app
WLMAI-1704 - Update packages on the external app
2 parents b4aaf71 + 6fc0c86 commit 3147105

File tree

3 files changed

+68
-60
lines changed

3 files changed

+68
-60
lines changed

AI/GenAI-ChatBot-application-sample/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,14 @@ To get started, you need to configure one of the supported login providers. Conf
6161
- CLERK_SECRET_KEY=YOUR_CLERK_SECRET_KEY
6262
- NEXT_PUBLIC_CLERK_TEMPLATE=YOUR_CLERK_TEMPLATE
6363

64+
## Change the application UI language
65+
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:
66+
67+
1. In the `.env.local` file, set the NEXT_PUBLIC_LANGUAGE variable to your selected language. The default language is en.
68+
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>/`.
69+
3. Translate all UI text in the `genAi.json` file to your preferred language.
70+
4. Reload the sample application.
71+
6472
## Install the application
6573
To install the sample application, run the following command:
6674

AI/GenAI-ChatBot-application-sample/package-lock.json

Lines changed: 56 additions & 56 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

AI/GenAI-ChatBot-application-sample/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,25 @@
1414
"@types/react-redux": "^7.1.34",
1515
"aws-amplify": "5.3.11",
1616
"cross-env": "^7.0.3",
17-
"html-react-parser": "^5.2.2",
17+
"html-react-parser": "^5.2.3",
1818
"i18next": "^24.2.3",
1919
"i18next-resources-to-backend": "^1.2.1",
2020
"moment": "^2.30.1",
21-
"next": "15.2.2",
21+
"next": "15.2.4",
2222
"next-i18n-router": "^5.5.1",
2323
"react": "^19",
2424
"react-dom": "^19",
2525
"react-i18next": "^15.4.1",
2626
"react-redux": "^9.2.0",
27-
"sass": "^1.85.1"
27+
"sass": "^1.86.3"
2828
},
2929
"devDependencies": {
3030
"@svgr/webpack": "^8.1.0",
3131
"@types/node": "^22",
3232
"@types/react": "^19",
3333
"@types/react-dom": "^19",
3434
"eslint": "^9",
35-
"eslint-config-next": "15.2.2",
35+
"eslint-config-next": "15.2.4",
3636
"typescript": "^5"
3737
}
3838
}

0 commit comments

Comments
 (0)