epam / ai-dial-chat

A default UI for AI DIAL
https://chat.lab.epam.com
Apache License 2.0
42 stars 15 forks source link

Add an instruction for chat localization #1721

Open sr-remsha opened 3 days ago

sr-remsha commented 3 days ago

Description

Add a short instruction with examples how to edit titles for the chat UI elements, including localization.

Use case/motivation

No response

Related issues

No response

Confidential information

sr-remsha commented 3 days ago

The application uses next-i18next and has resource files in the public/locales directory. To change any text on the UI, add a "key": "value" formatted value to the corresponding file (divided by areas), where the current UI text serves as the key (all text displayed on the UI is translated through next-i18next, based on the principle "the resource value is displayed if it exists, otherwise the key as it is"). Example: "New conversation": "New topic"