jodit / jodit-react

React wrapper for Jodit
MIT License
354 stars 118 forks source link

Translation is not working in some cases #231

Open GabrielFantato opened 1 year ago

GabrielFantato commented 1 year ago

Jodit Version: 3.24.7

Browser: Chrome OS: Windows Is React App: True

https://codesandbox.io/s/naughty-night-wv26xc?file=/src/App.tsx

In the ordered list menu, the items are not being translated into Portuguese (Lower Alpha, Lower Greek), even though the file (pt_br.js) is being imported and assigned to the component.

xdan commented 1 year ago

Hi,

import "./es.js";

const App = () => {
  const [content, setContent] = useState("");
  const config = useMemo(
    () => ({
      language: "pt_br",
      i18n: {
        pt_br
      }
    }),
    []
  );
}