diff --git a/src/components/Attachments/Attachment.jsx b/src/components/Attachments/Attachment.jsx
index 26f285d5..7b44e631 100644
--- a/src/components/Attachments/Attachment.jsx
+++ b/src/components/Attachments/Attachment.jsx
@@ -129,9 +129,13 @@ const Attachment = ({
handleKeyDown({
@@ -161,7 +165,7 @@ const Attachment = ({
@@ -190,11 +194,11 @@ const Attachment = ({
}
diff --git a/src/components/Attachments/Preview.jsx b/src/components/Attachments/Preview.jsx
index adc4f693..694d9a25 100644
--- a/src/components/Attachments/Preview.jsx
+++ b/src/components/Attachments/Preview.jsx
@@ -79,7 +79,7 @@ const Preview = ({
return (
diff --git a/src/components/Attachments/index.jsx b/src/components/Attachments/index.jsx
index b03a4482..bf0b2108 100644
--- a/src/components/Attachments/index.jsx
+++ b/src/components/Attachments/index.jsx
@@ -53,8 +53,8 @@ const Attachments = (
data: file,
});
} catch (error) {
- if (error.message !== t("error.onBeforeFileAddedReturn")) {
- Toastr.error(t("error.cannotAddFiles"));
+ if (error.message !== t("neetoEditor.error.onBeforeFileAddedReturn")) {
+ Toastr.error(t("neetoEditor.error.cannotAddFiles"));
}
}
});
@@ -173,7 +173,7 @@ const Attachments = (
)}
{!error && !loading && isNilOrEmpty(images) && (
@@ -90,7 +90,7 @@ const UnsplashImagePicker = ({ onSubmit, unsplashApiKey }) => {
className="neeto-editor-unsplash-gallery__text"
data-cy="neeto-editor-unsplash-image-picker-no-results-error"
>
- {t("unsplash.noResults")}
+ {t("neetoEditor.unsplash.noResults")}
)}
{!error && (
@@ -99,8 +99,7 @@ const UnsplashImagePicker = ({ onSubmit, unsplashApiKey }) => {
pack
position
className="neeto-editor-unsplash-gallery"
- hasMore={hasMore}
- loadMore={loadMore}
+ {...{ hasMore, loadMore }}
loader={Loader}
ref={masonryRef}
style={{ width: "100%" }}
@@ -146,7 +145,7 @@ const UnsplashImagePicker = ({ onSubmit, unsplashApiKey }) => {
{!hasMore && (
- {t("unsplash.end")}
+ {t("neetoEditor.unsplash.end")}
)}
diff --git a/src/components/Editor/MediaUploader/index.jsx b/src/components/Editor/MediaUploader/index.jsx
index 48f5d5ce..51bfb968 100644
--- a/src/components/Editor/MediaUploader/index.jsx
+++ b/src/components/Editor/MediaUploader/index.jsx
@@ -83,7 +83,7 @@ const MediaUploader = ({ mediaUploader, onClose, editor, unsplashApiKey }) => {
)}
{activeTab === "link" && (
[
{
Icon: LeftAlign,
alignPos: "left",
- optionName: t("menu.alignLeft"),
+ optionName: t("neetoEditor.menu.alignLeft"),
},
{
Icon: CenterAlign,
alignPos: "center",
- optionName: t("menu.alignCenter"),
+ optionName: t("neetoEditor.menu.alignCenter"),
},
{
Icon: RightAlign,
alignPos: "right",
- optionName: t("menu.alignRight"),
- },
- {
- Icon: Delete,
- optionName: t("menu.delete"),
+ optionName: t("neetoEditor.menu.alignRight"),
},
+ { Icon: Delete, optionName: t("neetoEditor.menu.delete") },
];
diff --git a/src/components/Editor/Menu/Bubble/LinkOption.jsx b/src/components/Editor/Menu/Bubble/LinkOption.jsx
index c8048d11..23602c57 100644
--- a/src/components/Editor/Menu/Bubble/LinkOption.jsx
+++ b/src/components/Editor/Menu/Bubble/LinkOption.jsx
@@ -53,7 +53,7 @@ const LinkOption = ({ editor, handleClose, handleAnimateInvalidLink }) => {
className="neeto-editor-bubble-menu-link__input"
data-cy="neeto-editor-link-input"
name="url"
- placeholder={t("placeholders.linkInput")}
+ placeholder={t("neetoEditor.placeholders.linkInput")}
value={link}
onChange={({ target: { value } }) => setLink(value)}
/>
diff --git a/src/components/Editor/Menu/Bubble/Options.jsx b/src/components/Editor/Menu/Bubble/Options.jsx
index 452f9b76..a273b966 100644
--- a/src/components/Editor/Menu/Bubble/Options.jsx
+++ b/src/components/Editor/Menu/Bubble/Options.jsx
@@ -69,8 +69,7 @@ const Options = ({
if (isLinkOptionActive) {
return (
setIsLinkOptionActive(false)}
/>
);
@@ -79,7 +78,7 @@ const Options = ({
if (isTableOptionActive) {
return (
setIsTableOptionActive(false)}
/>
);
@@ -105,16 +104,16 @@ const Options = ({
{blockStyleOptions.map(renderOptionButton)}
{isTextColorOptionActive && (
)}
{isEmojiActive && (
)}
{listStyleOptions.map(renderOptionButton)}
@@ -125,7 +124,7 @@ const Options = ({
active: editor.isActive("link"),
optionName: "link",
highlight: false,
- tooltip: tooltips.link || t("menu.link"),
+ tooltip: tooltips.link || t("neetoEditor.menu.link"),
})}
{isTableActive &&
renderOptionButton({
@@ -134,12 +133,11 @@ const Options = ({
active: editor.isActive("table"),
optionName: "table",
highlight: false,
- tooltip: tooltips.table || t("menu.table"),
+ tooltip: tooltips.table || t("neetoEditor.menu.table"),
})}
{children}
>
diff --git a/src/components/Editor/Menu/Bubble/TableOption.jsx b/src/components/Editor/Menu/Bubble/TableOption.jsx
index 10ea6605..a0c2938f 100644
--- a/src/components/Editor/Menu/Bubble/TableOption.jsx
+++ b/src/components/Editor/Menu/Bubble/TableOption.jsx
@@ -35,7 +35,7 @@ const TableOption = ({ editor, handleClose }) => {
autoFocus
data-cy="neeto-editor-fixed-menu-table-option-input"
min="1"
- placeholder={t("placeholders.rows")}
+ placeholder={t("neetoEditor.placeholders.rows")}
type="number"
value={rows}
onChange={withEventTargetValue(setRows)}
@@ -43,7 +43,7 @@ const TableOption = ({ editor, handleClose }) => {
{
const formattedUrl = validateAndFormatUrl(linkUrl);
if (!URL_REGEXP.test(formattedUrl)) {
- setError(t("error.invalidUrl"));
+ setError(t("neetoEditor.error.invalidUrl"));
return;
}
@@ -132,8 +132,8 @@ const LinkAddPopOver = ({ isAddLinkActive, setIsAddLinkActive, editor }) => {
{
required
autoFocus={isLinkTextPresent}
className="ne-link-popover__url-input"
- label={t("common.url")}
+ label={t("neetoEditor.common.url")}
size="small"
{...{ error }}
- placeholder={t("placeholders.url")}
+ placeholder={t("neetoEditor.placeholders.url")}
style={{ width: "250px" }}
value={linkUrl}
onChange={({ target: { value } }) => setLinkUrl(value)}
@@ -157,12 +157,12 @@ const LinkAddPopOver = ({ isAddLinkActive, setIsAddLinkActive, editor }) => {
{
closeOnSelect={false}
data-cy="neeto-editor-fixed-menu-link-option"
icon={NeetoChangelog}
- isOpen={isOpen}
+ {...{ isOpen }}
position="bottom"
buttonProps={{
tabIndex: -1,
@@ -50,7 +50,7 @@ const TableOption = ({ editor, tooltipContent }) => {
autoFocus
data-cy="neeto-editor-fixed-menu-table-option-input"
min="1"
- placeholder={t("placeholders.rows")}
+ placeholder={t("neetoEditor.placeholders.rows")}
size="small"
type="number"
value={rows}
@@ -59,7 +59,7 @@ const TableOption = ({ editor, tooltipContent }) => {
{
/>
diff --git a/src/components/Editor/Menu/Fixed/TextColorOption.jsx b/src/components/Editor/Menu/Fixed/TextColorOption.jsx
index 1e9b7bb2..65f51804 100644
--- a/src/components/Editor/Menu/Fixed/TextColorOption.jsx
+++ b/src/components/Editor/Menu/Fixed/TextColorOption.jsx
@@ -53,7 +53,7 @@ const TextColorOption = ({ editor, tooltipContent }) => {
{
)}
{isFontSizeActive && }
@@ -149,7 +149,7 @@ const Fixed = ({
{fontStyleOptions.map(renderOptionButton)}
{isNotEmpty(fontStyleOptions) && }
@@ -179,14 +179,16 @@ const Fixed = ({
{isTableActive && (
)}
{miscOptions.map(renderOptionButton)}
{isTextColorOptionActive && (
)}
{isEmojiActive && (
@@ -194,7 +196,7 @@ const Fixed = ({
{...{ editor }}
isActive={isEmojiPickerActive}
setActive={setIsEmojiPickerActive}
- tooltipContent={tooltips.emoji || t("menu.emoji")}
+ tooltipContent={tooltips.emoji || t("neetoEditor.menu.emoji")}
/>
)}
{isMediaUploaderActive && (
@@ -212,7 +214,9 @@ const Fixed = ({
)}
{addonCommandOptions.map(renderOptionButton)}
@@ -231,7 +235,9 @@ const Fixed = ({
icon={isMenuExpanded ? Left : Right}
style="text"
tooltipProps={{
- content: isMenuExpanded ? t("menu.collapse") : t("menu.expand"),
+ content: isMenuExpanded
+ ? t("neetoEditor.menu.collapse")
+ : t("neetoEditor.menu.expand"),
position: "bottom",
}}
onClick={() => setIsMenuExpanded(not)}
@@ -246,7 +252,7 @@ const Fixed = ({
buttonSize: "small",
buttonProps: {
tooltipProps: {
- content: t("menu.dynamicVariables"),
+ content: t("neetoEditor.menu.dynamicVariables"),
position: "bottom",
},
},
diff --git a/src/components/Editor/Menu/Fixed/utils.jsx b/src/components/Editor/Menu/Fixed/utils.jsx
index 553409fa..cec3f2fa 100644
--- a/src/components/Editor/Menu/Fixed/utils.jsx
+++ b/src/components/Editor/Menu/Fixed/utils.jsx
@@ -27,35 +27,35 @@ import { generateFocusProps } from "utils/focusHighlighter";
export const tableActions = ({ editor }) => [
{
- label: t("table.insertRow"),
+ label: t("neetoEditor.table.insertRow"),
command: () => editor.commands.addRowAfter(),
},
{
- label: t("table.insertColumn"),
+ label: t("neetoEditor.table.insertColumn"),
command: () => editor.commands.addColumnAfter(),
},
{
- label: t("table.deleteRow"),
+ label: t("neetoEditor.table.deleteRow"),
command: () => editor.chain().focus().deleteRow().run(),
},
{
- label: t("table.deleteColumn"),
+ label: t("neetoEditor.table.deleteColumn"),
command: () => editor.chain().focus().deleteColumn().run(),
},
{
- label: t("table.mergeSplit"),
+ label: t("neetoEditor.table.mergeSplit"),
command: () => editor.chain().focus().mergeOrSplit().run(),
},
{
- label: t("table.toggleHeaderRow"),
+ label: t("neetoEditor.table.toggleHeaderRow"),
command: () => editor.chain().focus().toggleHeaderRow().run(),
},
{
- label: t("table.toggleHeaderColumn"),
+ label: t("neetoEditor.table.toggleHeaderColumn"),
command: () => editor.chain().focus().toggleHeaderColumn().run(),
},
{
- label: t("table.delete"),
+ label: t("neetoEditor.table.delete"),
command: () => editor.commands.deleteTable(),
},
];
@@ -74,35 +74,35 @@ export const createMenuOptions = ({
command: () => editor.chain().focus().toggleBold().run(),
active: editor.isActive("bold"),
optionName: "bold",
- tooltip: tooltips.bold || t("menu.bold"),
+ tooltip: tooltips.bold || t("neetoEditor.menu.bold"),
},
{
Icon: TextItalic,
command: () => editor.chain().focus().toggleItalic().run(),
active: editor.isActive("italic"),
optionName: "italic",
- tooltip: tooltips.italic || t("menu.italic"),
+ tooltip: tooltips.italic || t("neetoEditor.menu.italic"),
},
{
Icon: Underline,
command: () => editor.chain().focus().toggleUnderline().run(),
active: editor.isActive("underline"),
optionName: "underline",
- tooltip: tooltips.underline || t("menu.underline"),
+ tooltip: tooltips.underline || t("neetoEditor.menu.underline"),
},
{
Icon: TextCross,
command: () => editor.chain().focus().toggleStrike().run(),
active: editor.isActive("strike"),
optionName: "strike",
- tooltip: tooltips.strike || t("menu.strike"),
+ tooltip: tooltips.strike || t("neetoEditor.menu.strike"),
},
{
Icon: Highlight,
command: () => editor.chain().focus().toggleHighlight().run(),
active: editor.isActive("highlight"),
optionName: "highlight",
- tooltip: tooltips.highlight || t("menu.highlight"),
+ tooltip: tooltips.highlight || t("neetoEditor.menu.highlight"),
},
],
block: [
@@ -112,21 +112,21 @@ export const createMenuOptions = ({
active: editor.isActive("blockquote"),
optionName: "block-quote",
highlight: true,
- tooltip: tooltips.blockQuote || t("menu.blockQuote"),
+ tooltip: tooltips.blockQuote || t("neetoEditor.menu.blockQuote"),
},
{
Icon: Code,
command: () => editor.chain().focus().toggleCode().run(),
active: editor.isActive("code"),
optionName: "code",
- tooltip: tooltips.code || t("menu.code"),
+ tooltip: tooltips.code || t("neetoEditor.menu.code"),
},
{
Icon: CodeBlock,
command: () => editor.chain().focus().toggleCodeBlock().run(),
active: editor.isActive("codeBlock"),
optionName: "code-block",
- tooltip: tooltips.codeBlock || t("menu.codeBlock"),
+ tooltip: tooltips.codeBlock || t("neetoEditor.menu.codeBlock"),
},
],
list: [
@@ -136,7 +136,7 @@ export const createMenuOptions = ({
active: editor.isActive("bulletList"),
optionName: "bullet-list",
highlight: true,
- tooltip: tooltips.bulletList || t("menu.bulletedList"),
+ tooltip: tooltips.bulletList || t("neetoEditor.menu.bulletedList"),
},
{
Icon: ListNumber,
@@ -144,7 +144,7 @@ export const createMenuOptions = ({
active: editor.isActive("orderedList"),
optionName: "ordered-list",
highlight: true,
- tooltip: tooltips.orderedList || t("menu.orderedList"),
+ tooltip: tooltips.orderedList || t("neetoEditor.menu.orderedList"),
},
],
misc: [
@@ -159,25 +159,25 @@ export const createMenuOptions = ({
command: handleUploadAttachments,
active: false,
optionName: "attachments",
- tooltip: tooltips.attachments || t("menu.attachments"),
+ tooltip: tooltips.attachments || t("neetoEditor.menu.attachments"),
},
{
Icon: ImageUpload,
command: () => setMediaUploader(assoc("image", true)),
optionName: "image-upload",
- tooltip: tooltips.imageUpload || t("menu.imageUpload"),
+ tooltip: tooltips.imageUpload || t("neetoEditor.menu.imageUpload"),
},
{
Icon: Video,
command: () => setMediaUploader(assoc("video", true)),
optionName: "video-upload",
- tooltip: tooltips.videoUpload || t("menu.videoUpload"),
+ tooltip: tooltips.videoUpload || t("neetoEditor.menu.videoUpload"),
},
{
Icon: MediaVideo,
command: () => setIsEmbedModalOpen(true),
optionName: "video-embed",
- tooltip: tooltips.videoEmbed || t("menu.videoEmbed"),
+ tooltip: tooltips.videoEmbed || t("neetoEditor.menu.videoEmbed"),
},
],
right: [
@@ -187,7 +187,7 @@ export const createMenuOptions = ({
active: false,
disabled: !editor.can().undo(),
optionName: "undo",
- tooltip: tooltips.undo || t("menu.undo"),
+ tooltip: tooltips.undo || t("neetoEditor.menu.undo"),
},
{
Icon: Redo,
@@ -195,7 +195,7 @@ export const createMenuOptions = ({
active: false,
disabled: !editor.can().redo(),
optionName: "redo",
- tooltip: tooltips.redo || t("menu.redo"),
+ tooltip: tooltips.redo || t("neetoEditor.menu.redo"),
},
],
});
diff --git a/src/components/Editor/Menu/Headless/constants.js b/src/components/Editor/Menu/Headless/constants.js
index abb6d286..e70e6c16 100644
--- a/src/components/Editor/Menu/Headless/constants.js
+++ b/src/components/Editor/Menu/Headless/constants.js
@@ -39,100 +39,100 @@ export const MENU_OPTIONS = ({
command: () => editor.chain().focus().toggleBold().run(),
active: editor.isActive("bold"),
optionName: "bold",
- tooltip: tooltips.bold || t("menu.bold"),
+ tooltip: tooltips.bold || t("neetoEditor.menu.bold"),
},
{
Icon: TextItalic,
command: () => editor.chain().focus().toggleItalic().run(),
active: editor.isActive("italic"),
optionName: "italic",
- tooltip: tooltips.italic || t("menu.italic"),
+ tooltip: tooltips.italic || t("neetoEditor.menu.italic"),
},
{
Icon: Underline,
command: () => editor.chain().focus().toggleUnderline().run(),
active: editor.isActive("underline"),
optionName: "underline",
- tooltip: tooltips.underline || t("menu.underline"),
+ tooltip: tooltips.underline || t("neetoEditor.menu.underline"),
},
{
Icon: TextCross,
command: () => editor.chain().focus().toggleStrike().run(),
active: editor.isActive("strike"),
optionName: "strike",
- tooltip: tooltips.strike || t("menu.strike"),
+ tooltip: tooltips.strike || t("neetoEditor.menu.strike"),
},
{
Icon: Highlight,
command: () => editor.chain().focus().toggleHighlight().run(),
active: editor.isActive("highlight"),
optionName: "highlight",
- tooltip: tooltips.highlight || t("menu.highlight"),
+ tooltip: tooltips.highlight || t("neetoEditor.menu.highlight"),
},
{
Icon: Quote,
command: () => editor.chain().focus().toggleBlockquote().run(),
active: editor.isActive("blockquote"),
optionName: "block-quote",
- tooltip: tooltips.blockQuote || t("menu.blockQuote"),
+ tooltip: tooltips.blockQuote || t("neetoEditor.menu.blockQuote"),
},
{
Icon: Code,
command: () => editor.chain().focus().toggleCode().run(),
active: editor.isActive("code"),
optionName: "code",
- tooltip: tooltips.code || t("menu.code"),
+ tooltip: tooltips.code || t("neetoEditor.menu.code"),
},
{
Icon: CodeBlock,
command: () => editor.chain().focus().toggleCodeBlock().run(),
active: editor.isActive("codeBlock"),
optionName: "code-block",
- tooltip: tooltips.codeBlock || t("menu.codeBlock"),
+ tooltip: tooltips.codeBlock || t("neetoEditor.menu.codeBlock"),
},
{
Icon: ListDot,
command: () => editor.chain().focus().toggleBulletList().run(),
active: editor.isActive("bulletList"),
optionName: "bullet-list",
- tooltip: tooltips.bulletList || t("menu.bulletedList"),
+ tooltip: tooltips.bulletList || t("neetoEditor.menu.bulletedList"),
},
{
Icon: ListNumber,
command: () => editor.chain().focus().toggleOrderedList().run(),
active: editor.isActive("orderedList"),
optionName: "ordered-list",
- tooltip: tooltips.orderedList || t("menu.orderedList"),
+ tooltip: tooltips.orderedList || t("neetoEditor.menu.orderedList"),
},
{
Icon: File,
command: handleUploadAttachments,
optionName: "attachments",
- tooltip: tooltips.attachments || t("menu.attachments"),
+ tooltip: tooltips.attachments || t("neetoEditor.menu.attachments"),
},
{
Icon: ImageUpload,
command: () => setMediaUploader(assoc("image", true)),
optionName: "image-upload",
- tooltip: tooltips.imageUpload || t("menu.imageUpload"),
+ tooltip: tooltips.imageUpload || t("neetoEditor.menu.imageUpload"),
},
{
Icon: Video,
command: () => setMediaUploader(assoc("video", true)),
optionName: "video-upload",
- tooltip: tooltips.videoUpload || t("menu.videoUpload"),
+ tooltip: tooltips.videoUpload || t("neetoEditor.menu.videoUpload"),
},
{
Icon: MediaVideo,
command: () => setIsEmbedModalOpen(true),
optionName: "video-embed",
- tooltip: tooltips.videoEmbed || t("menu.videoEmbed"),
+ tooltip: tooltips.videoEmbed || t("neetoEditor.menu.videoEmbed"),
},
{
Icon: Smiley,
command: noop,
optionName: "emoji",
- tooltip: tooltips.emoji || t("menu.emoji"),
+ tooltip: tooltips.emoji || t("neetoEditor.menu.emoji"),
isActive: isEmojiPickerActive,
setActive: setIsEmojiPickerActive,
},
@@ -145,20 +145,20 @@ export const MENU_OPTIONS = ({
.insertTable({ rows: 3, cols: 3, withHeaderRow: true })
.run(),
optionName: "table",
- tooltip: tooltips.table || t("menu.table"),
+ tooltip: tooltips.table || t("neetoEditor.menu.table"),
},
{
Icon: Undo,
command: () => editor.chain().focus().undo().run(),
disabled: !editor.can().undo(),
optionName: "undo",
- tooltip: tooltips.undo || t("menu.undo"),
+ tooltip: tooltips.undo || t("neetoEditor.menu.undo"),
},
{
Icon: Redo,
command: () => editor.chain().focus().redo().run(),
disabled: !editor.can().redo(),
optionName: "redo",
- tooltip: tooltips.redo || t("menu.redo"),
+ tooltip: tooltips.redo || t("neetoEditor.menu.redo"),
},
];
diff --git a/src/components/Editor/Menu/Headless/utils.js b/src/components/Editor/Menu/Headless/utils.js
index 9f0ec36e..17a1af7d 100644
--- a/src/components/Editor/Menu/Headless/utils.js
+++ b/src/components/Editor/Menu/Headless/utils.js
@@ -38,100 +38,100 @@ export const createMenuOptions = ({
command: () => editor.chain().focus().toggleBold().run(),
active: editor.isActive("bold"),
optionName: "bold",
- tooltip: tooltips.bold || t("menu.bold"),
+ tooltip: tooltips.bold || t("neetoEditor.menu.bold"),
},
{
Icon: TextItalic,
command: () => editor.chain().focus().toggleItalic().run(),
active: editor.isActive("italic"),
optionName: "italic",
- tooltip: tooltips.italic || t("menu.italic"),
+ tooltip: tooltips.italic || t("neetoEditor.menu.italic"),
},
{
Icon: Underline,
command: () => editor.chain().focus().toggleUnderline().run(),
active: editor.isActive("underline"),
optionName: "underline",
- tooltip: tooltips.underline || t("menu.underline"),
+ tooltip: tooltips.underline || t("neetoEditor.menu.underline"),
},
{
Icon: TextCross,
command: () => editor.chain().focus().toggleStrike().run(),
active: editor.isActive("strike"),
optionName: "strike",
- tooltip: tooltips.strike || t("menu.strike"),
+ tooltip: tooltips.strike || t("neetoEditor.menu.strike"),
},
{
Icon: Highlight,
command: () => editor.chain().focus().toggleHighlight().run(),
active: editor.isActive("highlight"),
optionName: "highlight",
- tooltip: tooltips.highlight || t("menu.highlight"),
+ tooltip: tooltips.highlight || t("neetoEditor.menu.highlight"),
},
{
Icon: Quote,
command: () => editor.chain().focus().toggleBlockquote().run(),
active: editor.isActive("blockquote"),
optionName: "block-quote",
- tooltip: tooltips.blockQuote || t("menu.blockQuote"),
+ tooltip: tooltips.blockQuote || t("neetoEditor.menu.blockQuote"),
},
{
Icon: Code,
command: () => editor.chain().focus().toggleCode().run(),
active: editor.isActive("code"),
optionName: "code",
- tooltip: tooltips.code || t("menu.code"),
+ tooltip: tooltips.code || t("neetoEditor.menu.code"),
},
{
Icon: CodeBlock,
command: () => editor.chain().focus().toggleCodeBlock().run(),
active: editor.isActive("codeBlock"),
optionName: "code-block",
- tooltip: tooltips.codeBlock || t("menu.codeBlock"),
+ tooltip: tooltips.codeBlock || t("neetoEditor.menu.codeBlock"),
},
{
Icon: ListDot,
command: () => editor.chain().focus().toggleBulletList().run(),
active: editor.isActive("bulletList"),
optionName: "bullet-list",
- tooltip: tooltips.bulletList || t("menu.bulletedList"),
+ tooltip: tooltips.bulletList || t("neetoEditor.menu.bulletedList"),
},
{
Icon: ListNumber,
command: () => editor.chain().focus().toggleOrderedList().run(),
active: editor.isActive("orderedList"),
optionName: "ordered-list",
- tooltip: tooltips.orderedList || t("menu.orderedList"),
+ tooltip: tooltips.orderedList || t("neetoEditor.menu.orderedList"),
},
{
Icon: File,
command: handleUploadAttachments,
optionName: "attachments",
- tooltip: tooltips.attachments || t("menu.attachments"),
+ tooltip: tooltips.attachments || t("neetoEditor.menu.attachments"),
},
{
Icon: ImageUpload,
command: () => setMediaUploader(assoc("image", true)),
optionName: "image-upload",
- tooltip: tooltips.imageUpload || t("menu.imageUpload"),
+ tooltip: tooltips.imageUpload || t("neetoEditor.menu.imageUpload"),
},
{
Icon: Video,
command: () => setMediaUploader(assoc("video", true)),
optionName: "video-upload",
- tooltip: tooltips.videoUpload || t("menu.videoUpload"),
+ tooltip: tooltips.videoUpload || t("neetoEditor.menu.videoUpload"),
},
{
Icon: MediaVideo,
command: () => setIsEmbedModalOpen(true),
optionName: "video-embed",
- tooltip: tooltips.videoEmbed || t("menu.videoEmbed"),
+ tooltip: tooltips.videoEmbed || t("neetoEditor.menu.videoEmbed"),
},
{
Icon: Smiley,
command: noop,
optionName: "emoji",
- tooltip: tooltips.emoji || t("menu.emoji"),
+ tooltip: tooltips.emoji || t("neetoEditor.menu.emoji"),
isActive: isEmojiPickerActive,
setActive: setIsEmojiPickerActive,
},
@@ -144,21 +144,21 @@ export const createMenuOptions = ({
.insertTable({ rows: 3, cols: 3, withHeaderRow: true })
.run(),
optionName: "table",
- tooltip: tooltips.table || t("menu.table"),
+ tooltip: tooltips.table || t("neetoEditor.menu.table"),
},
{
Icon: Undo,
command: () => editor.chain().focus().undo().run(),
disabled: !editor.can().undo(),
optionName: "undo",
- tooltip: tooltips.undo || t("menu.undo"),
+ tooltip: tooltips.undo || t("neetoEditor.menu.undo"),
},
{
Icon: Redo,
command: () => editor.chain().focus().redo().run(),
disabled: !editor.can().redo(),
optionName: "redo",
- tooltip: tooltips.redo || t("menu.redo"),
+ tooltip: tooltips.redo || t("neetoEditor.menu.redo"),
},
];
diff --git a/src/hooks/useUppyUploader.js b/src/hooks/useUppyUploader.js
index 7e30d353..66069b0b 100644
--- a/src/hooks/useUppyUploader.js
+++ b/src/hooks/useUppyUploader.js
@@ -20,7 +20,7 @@ const useUppyUploader = ({ uppyConfig, onSuccess = noop }) => {
if (file.size > maxFileSize) {
Toastr.error(
- t("error.fileIsTooLarge", {
+ t("neetoEditor.error.fileIsTooLarge", {
maxFileSize: convertToFileSize(uppyConfig.restrictions.maxFileSize),
})
);
diff --git a/src/translations/en.json b/src/translations/en.json
index 57bddd4c..a071b905 100644
--- a/src/translations/en.json
+++ b/src/translations/en.json
@@ -1,96 +1,98 @@
{
- "common": {
- "create": "Create",
- "download": "Download",
- "embed": "Embed",
- "unlink": "Unlink",
- "videoUrl": "Video URL:",
- "reset": "Reset",
- "auto": "Auto",
- "edit": "Edit",
- "cancel": "Cancel",
- "text": "Text:",
- "done": "Done",
- "url": "Url:"
- },
- "attachments": {
- "actionsBlocked": "You are not permitted to update or delete attachments",
- "add": "Add attachment",
- "deleteConfirmation": "You are permanently deleting the attachment {{entity}}. This can't be undone.",
- "deleteTitle": "Delete attachment?",
- "maxNumberOfFiles": "You can only attach {{entity}} files",
- "nameEmpty": "Filename cannot be empty",
- "noPreview": "There is no preview available, click to download.",
- "oneAttachmentAllowed": "Only one attachment is allowed"
- },
- "error": {
- "invalidUrl": "Please enter a valid URL",
- "cannotAddFiles": "Cannot add files",
- "onBeforeFileAddedReturn": "Cannot add the file because onBeforeFileAdded returned false.",
- "fileIsTooLarge": "File size is too large. Max size is {{maxFileSize}}.",
- "imageSizeIsShouldBeLess": "Image size should be less than {{limit}} MB"
- },
- "menu": {
- "attachments": "Attachments",
- "blockQuote": "Block quote",
- "bold": "Bold",
- "bulletedList": "Bulleted list",
- "code": "Code",
- "codeBlock": "Code block",
- "collapse": "Collapse",
- "emoji": "Emoji",
- "expand": "Expand",
- "fontSize": "Font size",
- "highlight": "Highlight",
- "imageUpload": "Image upload",
- "italic": "Italic",
- "link": "Link",
- "mention": "Mention",
- "orderedList": "Ordered list",
- "redo": "Redo",
- "strike": "Strike",
- "table": "Table",
- "textColor": "Text color",
- "underline": "Underline",
- "undo": "Undo",
- "dynamicVariables": "Dynamic variables",
- "videoEmbed": "Video embed",
- "videoUpload": "Video upload",
- "alignLeft": "Align left",
- "alignCenter": "Align center",
- "alignRight": "Align right",
- "delete": "Delete"
- },
- "placeholders": {
- "columns": "Enter columns",
- "linkInput": "Paste or type a link...",
- "pasteLink": "Paste the link here...",
- "pickColor": "Pick a color",
- "rows": "Enter rows",
- "searchUnsplash": "Search Unsplash",
- "url": "Enter URL",
- "enterText": "Enter text",
- "writeSomething": "Write something …",
- "searchLanguages": "Search languages"
- },
- "table": {
- "delete": "Delete table",
- "deleteColumn": "Delete column",
- "deleteRow": "Delete row",
- "insertColumn": "Insert column",
- "insertRow": "Insert row",
- "mergeSplit": "Merge/Split cell",
- "toggleHeaderColumn": "Toggle header column",
- "toggleHeaderRow": "Toggle header row"
- },
- "unsplash": {
- "errorMessage": "Something went wrong! Please try again later.",
- "noResults": "No results",
- "end": "End of results"
- },
- "localUploader": {
- "dropFilesHere": "Drop your file(s) here or Browse.",
- "maxFileSize": "Max. File Size: {{entity}}",
- "completed": "Completed"
+ "neetoEditor": {
+ "common": {
+ "create": "Create",
+ "download": "Download",
+ "embed": "Embed",
+ "unlink": "Unlink",
+ "videoUrl": "Video URL:",
+ "reset": "Reset",
+ "auto": "Auto",
+ "edit": "Edit",
+ "cancel": "Cancel",
+ "text": "Text:",
+ "done": "Done",
+ "url": "Url:"
+ },
+ "attachments": {
+ "actionsBlocked": "You are not permitted to update or delete attachments",
+ "add": "Add attachment",
+ "deleteConfirmation": "You are permanently deleting the attachment {{entity}}. This can't be undone.",
+ "deleteTitle": "Delete attachment?",
+ "maxNumberOfFiles": "You can only attach {{entity}} files",
+ "nameEmpty": "Filename cannot be empty",
+ "noPreview": "There is no preview available, click to download.",
+ "oneAttachmentAllowed": "Only one attachment is allowed"
+ },
+ "error": {
+ "invalidUrl": "Please enter a valid URL",
+ "cannotAddFiles": "Cannot add files",
+ "onBeforeFileAddedReturn": "Cannot add the file because onBeforeFileAdded returned false.",
+ "fileIsTooLarge": "File size is too large. Max size is {{maxFileSize}}.",
+ "imageSizeIsShouldBeLess": "Image size should be less than {{limit}} MB"
+ },
+ "menu": {
+ "attachments": "Attachments",
+ "blockQuote": "Block quote",
+ "bold": "Bold",
+ "bulletedList": "Bulleted list",
+ "code": "Code",
+ "codeBlock": "Code block",
+ "collapse": "Collapse",
+ "emoji": "Emoji",
+ "expand": "Expand",
+ "fontSize": "Font size",
+ "highlight": "Highlight",
+ "imageUpload": "Image upload",
+ "italic": "Italic",
+ "link": "Link",
+ "mention": "Mention",
+ "orderedList": "Ordered list",
+ "redo": "Redo",
+ "strike": "Strike",
+ "table": "Table",
+ "textColor": "Text color",
+ "underline": "Underline",
+ "undo": "Undo",
+ "dynamicVariables": "Dynamic variables",
+ "videoEmbed": "Video embed",
+ "videoUpload": "Video upload",
+ "alignLeft": "Align left",
+ "alignCenter": "Align center",
+ "alignRight": "Align right",
+ "delete": "Delete"
+ },
+ "placeholders": {
+ "columns": "Enter columns",
+ "linkInput": "Paste or type a link...",
+ "pasteLink": "Paste the link here...",
+ "pickColor": "Pick a color",
+ "rows": "Enter rows",
+ "searchUnsplash": "Search Unsplash",
+ "url": "Enter URL",
+ "enterText": "Enter text",
+ "writeSomething": "Write something …",
+ "searchLanguages": "Search languages"
+ },
+ "table": {
+ "delete": "Delete table",
+ "deleteColumn": "Delete column",
+ "deleteRow": "Delete row",
+ "insertColumn": "Insert column",
+ "insertRow": "Insert row",
+ "mergeSplit": "Merge/Split cell",
+ "toggleHeaderColumn": "Toggle header column",
+ "toggleHeaderRow": "Toggle header row"
+ },
+ "unsplash": {
+ "errorMessage": "Something went wrong! Please try again later.",
+ "noResults": "No results",
+ "end": "End of results"
+ },
+ "localUploader": {
+ "dropFilesHere": "Drop your file(s) here or Browse.",
+ "maxFileSize": "Max. File Size: {{entity}}",
+ "completed": "Completed"
+ }
}
}