react-markdown-editor-lite icon indicating copy to clipboard operation
react-markdown-editor-lite copied to clipboard

[BUG] Locale of en-us only takes effect partly on several tool bars when using next.js

Open jc-yang opened this issue 3 years ago • 0 comments

I am using next.js in my code, here is what I wrote:

import dynamic from 'next/dynamic';

const MdEditor: any = dynamic(
  () => {
    return new Promise((resolve) => {
      import('react-markdown-editor-lite').then((res) => {
        const editor = res.default;
        const plugins = res.Plugins;
        editor.useLocale('enUS');
        editor.use(plugins.TabInsert, { tabMapValue: 1 });
        resolve(editor as any);
      });
    });
  },
  {
    ssr: false,
  },
);

Some of tips do display in English when hovering, while the 表格, 制表符, 撤销 and 重做 are still in Chinese. Did I make mistakes in the codes? Or it is a bug to be fixed.

https://user-images.githubusercontent.com/33781521/160543337-2401ab17-5bec-48fd-a8c5-93f18ae956ee.mov

jc-yang avatar Mar 29 '22 06:03 jc-yang