|
|
@@ -3,6 +3,7 @@ import {
|
|
|
} from 'react';
|
|
|
|
|
|
import type { IPagePopulatedToShowRevision } from '@growi/core';
|
|
|
+import { useTranslation } from 'next-i18next';
|
|
|
|
|
|
import { usePageSelectModal } from '~/stores/modal';
|
|
|
import { EditorMode, useEditorMode } from '~/stores/ui';
|
|
|
@@ -26,6 +27,8 @@ export const PagePathHeader: FC<Props> = (props) => {
|
|
|
const [inputText, setInputText] = useState('');
|
|
|
const [isEditing, setIsEditing] = useState(true);
|
|
|
|
|
|
+ const { t } = useTranslation();
|
|
|
+
|
|
|
const { data: editorMode } = useEditorMode();
|
|
|
const { data: PageSelectModalData, open: openPageSelectModal } = usePageSelectModal();
|
|
|
const pagePathSubmitHandler = usePagePathSubmitHandler(currentPage, currentPagePath, setRenameInputShown);
|
|
|
@@ -86,7 +89,7 @@ export const PagePathHeader: FC<Props> = (props) => {
|
|
|
<>
|
|
|
<div className="col-4">
|
|
|
<button type="button" onClick={handleEditButtonClick}>
|
|
|
- {isEditing ? '完了ボタン' : '編集ボタン'}
|
|
|
+ {isEditing ? t('Done') : t('Edit')}
|
|
|
</button>
|
|
|
</div>
|
|
|
<div className="col-4">
|