Skip to content

Commit

Permalink
Fix dynamic uses of i18n
Browse files Browse the repository at this point in the history
Signed-off-by: Miki <[email protected]>
  • Loading branch information
AMoo-Miki committed Sep 28, 2024
1 parent 519bb92 commit 24b7b37
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions public/components/incontext_insight/generate_popover_body.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,13 @@ export const GeneratePopoverBody: React.FC<{
<EuiText>
<EuiTitle size="xxs">
<h6>
{i18n.translate('assistantDashboards.incontextInsight.Summary', {
defaultMessage: showInsight ? 'Insight With RAG' : 'Summary',
})}
{showInsight
? i18n.translate('assistantDashboards.inContextInsight.withRAGSummary', {
defaultMessage: 'Insight With RAG',
})
: i18n.translate('assistantDashboards.inContextInsight.summary', {
defaultMessage: 'Summary',
})}
</h6>
</EuiTitle>
</EuiText>
Expand Down

0 comments on commit 24b7b37

Please sign in to comment.