From 89018a5276b996e9c7037c226de5dd1495e7bfd6 Mon Sep 17 00:00:00 2001
From: chris <kokosias@yahoo.gr>
Date: Tue, 21 Nov 2023 18:54:39 +0200
Subject: [PATCH] remove unused file

---
 editors/demo/src/Editoria/config/config.js      |  4 ++--
 wax-prosemirror-core/index.js                   |  1 -
 wax-prosemirror-core/src/helpers/Translation.js | 12 ------------
 3 files changed, 2 insertions(+), 15 deletions(-)
 delete mode 100644 wax-prosemirror-core/src/helpers/Translation.js

diff --git a/editors/demo/src/Editoria/config/config.js b/editors/demo/src/Editoria/config/config.js
index 78343b568..dda51cb63 100644
--- a/editors/demo/src/Editoria/config/config.js
+++ b/editors/demo/src/Editoria/config/config.js
@@ -17,19 +17,19 @@ import {
   MathService,
   FindAndReplaceService,
   EditingSuggestingService,
-  TrackingAndEditingToolGroupService,
   FullScreenService,
   SpecialCharactersService,
   HighlightService,
   BottomInfoService,
   TransformService,
+  TrackingAndEditingToolGroupService,
   TrackOptionsToolGroupService,
   TrackCommentOptionsToolGroupService,
   CustomTagService,
   disallowPasteImagesPlugin,
-  // YjsService,
   BlockDropDownToolGroupService,
   AskAiContentService,
+  // YjsService,
 } from 'wax-prosemirror-services';
 
 import { TablesService, tableEditing, columnResizing } from 'wax-table-service';
diff --git a/wax-prosemirror-core/index.js b/wax-prosemirror-core/index.js
index 27a9bd09d..0bc457d6c 100644
--- a/wax-prosemirror-core/index.js
+++ b/wax-prosemirror-core/index.js
@@ -18,7 +18,6 @@ export { default as EditoriaSchema } from './src/utilities/schema/EditoriaSchema
 export { default as Middleware } from './src/utilities/lib/Middleware';
 export { default as ToolGroup } from './src/utilities/lib/ToolGroup';
 export { default as Tools } from './src/utilities/lib/Tools';
-export { default as Translation } from './src/helpers/Translation';
 
 /* Base Services */
 export { default as LayoutService } from './src/config/defaultServices/LayoutService/LayoutService';
diff --git a/wax-prosemirror-core/src/helpers/Translation.js b/wax-prosemirror-core/src/helpers/Translation.js
deleted file mode 100644
index bd4a85014..000000000
--- a/wax-prosemirror-core/src/helpers/Translation.js
+++ /dev/null
@@ -1,12 +0,0 @@
-/* eslint-disable react/prop-types */
-import React from 'react';
-import { isEmpty } from 'lodash';
-import { useTranslation } from 'react-i18next';
-
-const Translation = ({ label, defaultTr }) => {
-  console.log('asdads', defaultTr);
-  const { t, i18n } = useTranslation();
-  return <>{!isEmpty(i18n) && i18n.exists(label) ? t(label) : defaultTr}</>;
-};
-
-export default Translation;
-- 
GitLab