|
|
@@ -1,3 +1,4 @@
|
|
|
+import { useTranslation } from 'react-i18next';
|
|
|
import { ModalBody, Input } from 'reactstrap';
|
|
|
|
|
|
import { AiAssistantManagementHeader } from './AiAssistantManagementHeader';
|
|
|
@@ -10,6 +11,7 @@ type Props = {
|
|
|
|
|
|
export const AiAssistantManagementEditInstruction = (props: Props): JSX.Element => {
|
|
|
const { instruction, onChange, onReset } = props;
|
|
|
+ const { t } = useTranslation();
|
|
|
|
|
|
return (
|
|
|
<>
|
|
|
@@ -17,8 +19,7 @@ export const AiAssistantManagementEditInstruction = (props: Props): JSX.Element
|
|
|
|
|
|
<ModalBody className="px-4">
|
|
|
<p className="text-secondary py-1">
|
|
|
- アシスタントの振る舞いを決める指示文を設定できます。<br />
|
|
|
- この指示に従ってにアシスタントの回答や分析を行います。
|
|
|
+ {t('modal_ai_assistant.instructions.description')}
|
|
|
</p>
|
|
|
|
|
|
<Input
|
|
|
@@ -31,7 +32,7 @@ export const AiAssistantManagementEditInstruction = (props: Props): JSX.Element
|
|
|
/>
|
|
|
|
|
|
<button type="button" onClick={onReset} className="btn btn-outline-secondary btn-sm">
|
|
|
- デフォルトに戻す
|
|
|
+ {t('modal_ai_assistant.instructions.reset_to_default')}
|
|
|
</button>
|
|
|
</ModalBody>
|
|
|
</>
|