diff --git a/client/src/components/Endpoints/PopoverButtons.tsx b/client/src/components/Endpoints/PopoverButtons.tsx index 3b65b8f290..37c4e08c1f 100644 --- a/client/src/components/Endpoints/PopoverButtons.tsx +++ b/client/src/components/Endpoints/PopoverButtons.tsx @@ -4,6 +4,7 @@ import { useRecoilState } from 'recoil'; import { Button } from '~/components'; import { cn } from '~/utils/'; import store from '~/store'; +import { useLocalize } from '~/hooks'; type TPopoverButton = { label: string; @@ -21,6 +22,7 @@ export default function PopoverButtons({ buttonClass?: string; iconClass?: string; }) { + const localize = useLocalize(); const [optionSettings, setOptionSettings] = useRecoilState(store.optionSettings); const [showAgentSettings, setShowAgentSettings] = useRecoilState(store.showAgentSettings); const { showExamples, isCodeChat } = optionSettings; @@ -30,7 +32,7 @@ export default function PopoverButtons({ const buttons: { [key: string]: TPopoverButton[] } = { google: [ { - label: (showExamples ? 'Hide' : 'Show') + ' Examples', + label: (showExamples ? localize('com_endpoint_hide') : localize('com_endpoint_show')) + localize('com_endpoint_examples'), buttonClass: isCodeChat ? 'disabled' : '', handler: triggerExamples, icon: , @@ -38,7 +40,7 @@ export default function PopoverButtons({ ], gptPlugins: [ { - label: `Show ${showAgentSettings ? 'Completion' : 'Agent'} Settings`, + label: localize('com_endpoint_show_what_settings', showAgentSettings ? localize('com_endpoint_completion') : localize('com_endpoint_agent')), buttonClass: '', handler: () => setShowAgentSettings((prev) => !prev), icon: , diff --git a/client/src/components/Endpoints/Settings/Anthropic.tsx b/client/src/components/Endpoints/Settings/Anthropic.tsx index 05255ea22b..2572048f94 100644 --- a/client/src/components/Endpoints/Settings/Anthropic.tsx +++ b/client/src/components/Endpoints/Settings/Anthropic.tsx @@ -122,10 +122,12 @@ export default function Settings({ conversation, setOption, models, readonly }: - {localize('com_endpoint_top_p')}{' '} - - ({localize('com_endpoint_default_with_num', '0.7')}) - + + {localize('com_endpoint_top_p')}{' '} + + ({localize('com_endpoint_default_with_num', '0.7')}) + + - {localize('com_endpoint_max_output_tokens')}{' '} - - ({localize('com_endpoint_default_with_num', '4000')}) - + + {localize('com_endpoint_max_output_tokens')}{' '} + + ({localize('com_endpoint_default_with_num', '4000')}) + +