Explorar el Código

change from commons to translation

ryosei-f hace 5 días
padre
commit
34fb257f6d

+ 0 - 17
apps/app/public/static/locales/en_US/commons.json

@@ -215,22 +215,5 @@
         "page_bulk_export": "Grants permission to edit page bulk export features."
       }
     }
-  },
-  "toolbar": {
-    "attachments": "Attachments",
-    "bold": "Bold",
-    "bullet_list": "Bullet List",
-    "checklist": "Checklist",
-    "code": "Code",
-    "diagram": "Diagram",
-    "emoji": "Emoji",
-    "heading": "Heading",
-    "italic": "Italic",
-    "numbered_list": "Numbered List",
-    "quote": "Quote",
-    "strikethrough": "Strikethrough",
-    "table": "Table",
-    "template": "Template",
-    "text_formatting": "Text Formatting"
   }
 }

+ 17 - 0
apps/app/public/static/locales/en_US/translation.json

@@ -1077,5 +1077,22 @@
     "success-toaster": "Latest text synchronized",
     "skipped-toaster": "Skipped synchronizing since the editor is not activated. Please open the editor and try again.",
     "error-toaster": "Synchronization of the latest text failed"
+  },
+  "toolbar": {
+    "attachments": "Attachments",
+    "bold": "Bold",
+    "bullet_list": "Bullet List",
+    "checklist": "Checklist",
+    "code": "Code",
+    "diagram": "Diagram",
+    "emoji": "Emoji",
+    "heading": "Heading",
+    "italic": "Italic",
+    "numbered_list": "Numbered List",
+    "quote": "Quote",
+    "strikethrough": "Strikethrough",
+    "table": "Table",
+    "template": "Template",
+    "text_formatting": "Text Formatting"
   }
 }

+ 0 - 17
apps/app/public/static/locales/fr_FR/commons.json

@@ -216,22 +216,5 @@
         "page_bulk_export": "Accorde la permission de modifier les fonctionnalités d'exportation en masse de pages."
       }
     }
-  },
-  "toolbar": {
-    "attachments": "Pièces jointes",
-    "bold": "Gras",
-    "bullet_list": "Liste à puces",
-    "checklist": "Liste de contrôle",
-    "code": "Code",
-    "diagram": "Diagramme",
-    "emoji": "Emoji",
-    "heading": "Titre",
-    "italic": "Italique",
-    "numbered_list": "Liste numérotée",
-    "quote": "Citation",
-    "strikethrough": "Barré",
-    "table": "Tableau",
-    "template": "Modèle",
-    "text_formatting": "Mise en forme du texte"
   }
 }

+ 17 - 0
apps/app/public/static/locales/fr_FR/translation.json

@@ -1069,5 +1069,22 @@
     "success-toaster": "Dernière révision synchronisée",
     "skipped-toaster": "Le mode édition doit être activé pour déclencher la synchronisation. Synchronisation annulée.",
     "error-toaster": "Synchronisation échouée"
+  },
+  "toolbar": {
+    "attachments": "Pièces jointes",
+    "bold": "Gras",
+    "bullet_list": "Liste à puces",
+    "checklist": "Liste de contrôle",
+    "code": "Code",
+    "diagram": "Diagramme",
+    "emoji": "Emoji",
+    "heading": "Titre",
+    "italic": "Italique",
+    "numbered_list": "Liste numérotée",
+    "quote": "Citation",
+    "strikethrough": "Barré",
+    "table": "Tableau",
+    "template": "Modèle",
+    "text_formatting": "Mise en forme du texte"
   }
 }

+ 0 - 17
apps/app/public/static/locales/ja_JP/commons.json

@@ -219,22 +219,5 @@
         "page_bulk_export": "ページの一括エクスポート機能の編集権限を付与できます。"
       }
     }
-  },
-  "toolbar": {
-    "attachments": "添付ファイル",
-    "bold": "太字",
-    "bullet_list": "箇条書きリスト",
-    "checklist": "チェックリスト",
-    "code": "コード",
-    "diagram": "ダイアグラム",
-    "emoji": "絵文字",
-    "heading": "見出し",
-    "italic": "イタリック",
-    "numbered_list": "番号付きリスト",
-    "quote": "引用",
-    "strikethrough": "取り消し線",
-    "table": "テーブル",
-    "template": "テンプレート",
-    "text_formatting": "テキスト書式"
   }
 }

+ 17 - 0
apps/app/public/static/locales/ja_JP/translation.json

@@ -1110,5 +1110,22 @@
     "success-toaster": "最新の本文を同期しました",
     "skipped-toaster": "エディターがアクティブではないため、同期をスキップしました。エディターを開いて再度お試しください。",
     "error-toaster": "最新の本文の同期に失敗しました"
+  },
+  "toolbar": {
+    "attachments": "添付ファイル",
+    "bold": "太字",
+    "bullet_list": "箇条書きリスト",
+    "checklist": "チェックリスト",
+    "code": "コード",
+    "diagram": "ダイアグラム",
+    "emoji": "絵文字",
+    "heading": "見出し",
+    "italic": "イタリック",
+    "numbered_list": "番号付きリスト",
+    "quote": "引用",
+    "strikethrough": "取り消し線",
+    "table": "テーブル",
+    "template": "テンプレート",
+    "text_formatting": "テキスト書式"
   }
 }

+ 0 - 17
apps/app/public/static/locales/ko_KR/commons.json

@@ -123,22 +123,5 @@
     "transfer_key_limit": "전송 키는 발급 후 1시간 동안 유효합니다.",
     "once_transfer_key_used": "전송 키가 전송에 사용되면 다른 전송에는 사용할 수 없습니다.",
     "transfer_to_growi_cloud": "자세한 내용은 <a href='{{documentationUrl}}en/admin-guide/management-cookbook/g2g-transfer.html'>여기를 클릭하십시오.</a>"
-  },
-  "toolbar": {
-    "attachments": "첨부 파일",
-    "bold": "굵게",
-    "bullet_list": "글머리 기호 목록",
-    "checklist": "체크리스트",
-    "code": "코드",
-    "diagram": "다이어그램",
-    "emoji": "이모지",
-    "heading": "제목",
-    "italic": "기울임꼴",
-    "numbered_list": "번호 매기기 목록",
-    "quote": "인용",
-    "strikethrough": "취소선",
-    "table": "표",
-    "template": "템플릿",
-    "text_formatting": "텍스트 서식"
   }
 }

+ 17 - 0
apps/app/public/static/locales/ko_KR/translation.json

@@ -1037,5 +1037,22 @@
     "success-toaster": "최신 텍스트 동기화됨",
     "skipped-toaster": "편집기가 활성화되지 않아 동기화 건너뜀. 편집기를 열고 다시 시도하십시오.",
     "error-toaster": "최신 텍스트 동기화 실패"
+  },
+  "toolbar": {
+    "attachments": "첨부 파일",
+    "bold": "굵게",
+    "bullet_list": "글머리 기호 목록",
+    "checklist": "체크리스트",
+    "code": "코드",
+    "diagram": "다이어그램",
+    "emoji": "이모지",
+    "heading": "제목",
+    "italic": "기울임꼴",
+    "numbered_list": "번호 매기기 목록",
+    "quote": "인용",
+    "strikethrough": "취소선",
+    "table": "표",
+    "template": "템플릿",
+    "text_formatting": "텍스트 서식"
   }
 }

+ 0 - 17
apps/app/public/static/locales/zh_CN/commons.json

@@ -218,22 +218,5 @@
         "page_bulk_export": "授予编辑页面批量导出功能的权限。"
       }
     }
-  },
-  "toolbar": {
-    "attachments": "附件",
-    "bold": "粗体",
-    "bullet_list": "无序列表",
-    "checklist": "清单",
-    "code": "代码",
-    "diagram": "图表",
-    "emoji": "表情符号",
-    "heading": "标题",
-    "italic": "斜体",
-    "numbered_list": "有序列表",
-    "quote": "引用",
-    "strikethrough": "删除线",
-    "table": "表格",
-    "template": "模板",
-    "text_formatting": "文本格式"
   }
 }

+ 17 - 0
apps/app/public/static/locales/zh_CN/translation.json

@@ -1082,5 +1082,22 @@
     "success-toaster": "同步最新文本",
     "skipped-toaster": "由于编辑器未激活,因此跳过同步。 请打开编辑器并重试。",
     "error-toaster": "同步最新文本失败"
+  },
+  "toolbar": {
+    "attachments": "附件",
+    "bold": "粗体",
+    "bullet_list": "无序列表",
+    "checklist": "清单",
+    "code": "代码",
+    "diagram": "图表",
+    "emoji": "表情符号",
+    "heading": "标题",
+    "italic": "斜体",
+    "numbered_list": "有序列表",
+    "quote": "引用",
+    "strikethrough": "删除线",
+    "table": "表格",
+    "template": "模板",
+    "text_formatting": "文本格式"
   }
 }

+ 1 - 1
packages/editor/src/client/components-internal/CodeMirrorEditor/Toolbar/AttachmentsDropup.tsx

@@ -29,7 +29,7 @@ export const AttachmentsDropup = (props: Props): JSX.Element => {
   const [isOpen, setOpen] = useState(false);
 
   const id = useId();
-  const { t } = useTranslation('commons');
+  const { t } = useTranslation('translation');
 
   return (
     <>

+ 1 - 1
packages/editor/src/client/components-internal/CodeMirrorEditor/Toolbar/DiagramButton.tsx

@@ -12,7 +12,7 @@ export const DiagramButton = (props: Props): JSX.Element => {
   const { editorKey } = props;
   const { open: openDrawioModal } = useDrawioModalForEditorActions();
   const id = useId();
-  const { t } = useTranslation('commons');
+  const { t } = useTranslation('translation');
 
   const onClickDiagramButton = useCallback(() => {
     openDrawioModal(editorKey);

+ 1 - 1
packages/editor/src/client/components-internal/CodeMirrorEditor/Toolbar/EmojiButton.tsx

@@ -27,7 +27,7 @@ export const EmojiButton = (props: Props): JSX.Element => {
   const { editorKey } = props;
 
   const id = useId();
-  const { t } = useTranslation('commons');
+  const { t } = useTranslation('translation');
 
   const [isOpen, setIsOpen] = useState(false);
   const [Picker, setPicker] = useState<ComponentType<PickerProps> | null>(null);

+ 1 - 1
packages/editor/src/client/components-internal/CodeMirrorEditor/Toolbar/TableButton.tsx

@@ -13,7 +13,7 @@ export const TableButton = (props: Props): JSX.Element => {
   const { editorKey } = props;
 
   const id = useId();
-  const { t } = useTranslation('commons');
+  const { t } = useTranslation('translation');
 
   const { data: codeMirrorEditor } = useCodeMirrorEditorIsolated(editorKey);
   const { open: openTableModal } = useHandsontableModalForEditorActions();

+ 1 - 1
packages/editor/src/client/components-internal/CodeMirrorEditor/Toolbar/TemplateButton.tsx

@@ -13,7 +13,7 @@ export const TemplateButton = (props: Props): JSX.Element => {
   const { editorKey } = props;
 
   const id = useId();
-  const { t } = useTranslation('commons');
+  const { t } = useTranslation('translation');
 
   const { data: codeMirrorEditor } = useCodeMirrorEditorIsolated(editorKey);
   const { open: openTemplateModal } = useTemplateModalActions();

+ 2 - 2
packages/editor/src/client/components-internal/CodeMirrorEditor/Toolbar/TextFormatTools.tsx

@@ -18,7 +18,7 @@ const TextFormatToolsToggler = (props: TogglarProps): JSX.Element => {
   const { isOpen, onClick } = props;
 
   const id = useId();
-  const { t } = useTranslation('commons');
+  const { t } = useTranslation('translation');
   const activeClass = isOpen ? 'active' : '';
 
   return (
@@ -47,7 +47,7 @@ export const TextFormatTools = (props: TextFormatToolsType): JSX.Element => {
   const { editorKey, onTextFormatToolsCollapseChange } = props;
   const [isOpen, setOpen] = useState(false);
   const baseId = useId();
-  const { t } = useTranslation('commons');
+  const { t } = useTranslation('translation');
   const { data: codeMirrorEditor } = useCodeMirrorEditorIsolated(editorKey);
 
   const toggle = useCallback(() => {