Translate the chat
The chat of the AI Assistant shows its texts in the user's language, like the rest of the worker site. Its texts are text resources of your solution:
- The chat's own texts, such as its buttons, the placeholder of the message box and the questions of the confirmation cards, have the keys
ai_chat_.... The chat has English defaults for them. Add text resources with these keys to translate them or to change their wording. - The assistant profile's texts: the title, the greeting, the suggested prompts, and the name and hint of each model. Enter text resource keys in the profile instead of texts, and add the texts of the keys in each language.
- The messages of the AI service, such as a limit that is reached, have the keys
ai_chat_error_<code>. Without them, the chat shows the service's English message.
The assistant itself answers in the language the user writes in, unless the profile's instructions say otherwise.

Add the texts
- In Casewhere Admin, open Text Resources.
- Add a text resource for each key you translate, with its text in each language of the worker site. To add many at once, use More > Import Excel with one column per language.
- For the profile's texts, enter the keys in the profile's Title shown to users, Greeting, Suggested prompts, and the Name in the picker and Hint of its models.
A key the solution does not have shows the chat's English default. Worker sites have no built-in translations of these keys: add them for every language your worker sites offer.
The chat's texts
| Key | English default | Where |
|---|---|---|
ai_chat_title |
Casewhere AI | The panel's title when the profile has none |
ai_chat_open |
Open the assistant | The button that opens the panel |
ai_chat_close |
Close the assistant | The button that closes the panel |
ai_chat_maximize |
Maximize | The button that maximizes the panel |
ai_chat_restore |
Restore | The button that gives the maximized panel its size back |
ai_chat_resize |
Resize | The grip that resizes the panel |
ai_chat_resize_hint |
Drag to change the size, or use the arrow keys. Double-click for the original size. | The grip's tooltip |
ai_chat_busy |
writing an answer | The button's state while an answer is written |
ai_chat_unread |
new answer | The button's state when an answer waits to be read |
ai_chat_conversations |
Conversations | The button and the list of earlier conversations |
ai_chat_new_conversation |
New conversation | The button that starts a new conversation |
ai_chat_no_conversations |
No conversations yet. | The empty list of conversations |
ai_chat_open_conversation |
Open conversation | A conversation in the list |
ai_chat_delete_conversation |
Delete conversation | The button that deletes a conversation |
ai_chat_delete_confirm |
Delete this conversation? | The question before a conversation is deleted |
ai_chat_delete |
Delete | The button that deletes |
ai_chat_cancel |
Cancel | The button that cancels |
ai_chat_back |
Back to the conversation | The button from the list back to the conversation |
ai_chat_profile |
Assistant | The picker of assistant profiles |
ai_chat_model |
Model | The picker of models |
ai_chat_message |
Message | The message box |
ai_chat_placeholder |
Ask a question... | The empty message box |
ai_chat_send |
Send | The button that sends a message |
ai_chat_stop |
Stop | The button that stops an answer |
ai_chat_empty |
How can I help you? | The greeting when the profile has none |
ai_chat_suggestions |
Suggestions | The suggested prompts |
ai_chat_disclaimer |
Answers are written by AI and can be wrong. Check what matters. | The note under the message box |
ai_chat_thinking |
Thinking... | An answer that has not started |
ai_chat_tool_data |
Looking up data... | The assistant reads data |
ai_chat_tool_knowledge |
Searching the knowledge sources... | The assistant searches the knowledge sources |
ai_chat_tool_workflow |
Working on a workflow... | The assistant works on a workflow |
ai_chat_tool_other |
Working... | The assistant uses another tool |
ai_chat_sources |
Sources | The passages an answer cites |
ai_chat_copy |
Copy the answer | The button that copies an answer |
ai_chat_copied |
Copied | An answer was copied |
ai_chat_retry |
Try again | The button that asks again after an error |
ai_chat_latest |
Go to the latest message | The button back to the latest message |
ai_chat_answered_by |
Answered by {{model}} | The model that wrote an answer |
ai_chat_stopped |
Stopped. | An answer the user stopped |
ai_chat_stopped_tool_rounds |
The assistant stopped before it was done. Ask it to continue if you need more. | An answer that reached the profile's tool rounds |
ai_chat_error |
Something went wrong. Please try again. | An error without a message |
ai_chat_load_error |
The conversations could not be loaded. | The list of conversations could not be loaded |
ai_chat_not_found |
This conversation no longer exists. | A conversation that was deleted |
ai_chat_loading |
Loading... | Something is loading |
ai_chat_links |
Links | The buttons under an answer |
ai_chat_link_page |
Open the page | A button that opens a page |
ai_chat_link_record |
Open the record | A button that opens a record |
ai_chat_link_workflow |
Start the workflow | A button that starts a workflow |
ai_chat_link_error |
The workflow could not be started. | A button's workflow could not be started |
ai_chat_confirm_title_submit |
Submit this form? | The question of a card that submits a form |
ai_chat_confirm_title_draft |
Save this draft? | The question of a card that saves a draft |
ai_chat_confirm_title_start |
Start this workflow? | The question of a card that starts a workflow |
ai_chat_confirm_title_other |
Allow this? | The question of any other card |
ai_chat_confirm_submit |
Submit | The button that submits a form |
ai_chat_confirm_draft |
Save draft | The button that saves a draft |
ai_chat_confirm_start |
Start | The button that starts a workflow |
ai_chat_confirm_allow |
Allow | The button that allows any other change |
ai_chat_confirm_decline |
Decline | The button that declines a card |
ai_chat_confirm_approved |
You allowed this. | An allowed card |
ai_chat_confirm_declined |
You declined this. | A declined card |
ai_chat_confirm_truncated |
Not every value is shown. | A card that shows only some of the values |
ai_chat_confirm_record |
A selected record | A value that is a record |
ai_chat_confirm_technical |
Values the form keeps for itself | The folded values a form keeps for itself |
The dates in the list of conversations, such as 2 hours ago, come from the browser in the user's language.
The messages of the AI service
When the AI service refuses a message or an answer fails, the chat shows the text resource ai_chat_error_<code> of the message's code, or the service's English message when the solution has no such text. Some messages have values, which the text writes as {{name}}.
| Key | When |
|---|---|
ai_chat_error_unreachable |
The AI service does not answer. |
ai_chat_error_profile_not_available |
The assistant profile asked for is not one the user may use on this worker site. |
ai_chat_error_no_profile |
The worker site offers no profile the user may use. |
ai_chat_error_no_model |
The profile ({{profile}}) has no model connection that is active and has an API key. |
ai_chat_error_busy |
An answer is still being written in this conversation. |
ai_chat_error_confirmation_closed |
The card has been answered already, for example in another browser tab. |
ai_chat_error_other_profile |
The conversation belongs to another assistant profile. |
ai_chat_error_limit_messages |
The user reached the profile's messages per hour ({{count}}). |
ai_chat_error_limit_tokens |
The user used up the profile's tokens for the month; it is renewed on {{renewed}}. |
ai_chat_error_service_stopped |
The AI service stopped before the answer was finished. |
ai_chat_error_turn_too_long |
The answer took longer than the profile's longest answer. |
ai_chat_error_model_timeout |
The model did not answer in time. |
ai_chat_error_model_failed |
The model provider refused or failed the call. The details are in the log of the AI service. |
Values on confirmation cards
A confirmation card shows the values of a form as the form shows them: the labels of its fields and the texts of the options, in the user's language. Some values have no label, because the form keeps them in its own data, for example values its scripts set. For those, the card looks for a text resource named after the field: ai_field_ and the field's name in lowercase words joined by underscores. For example, a field ApplicationKnCodes is shown with the text resource ai_field_application_kn_codes. Without such a text, the card shows the field's name as words.