|
|
|
@ -23,8 +23,8 @@ By default, the editor includes only the English language, if you need other lan |
|
|
|
|
|
|
|
```js |
|
|
|
import grapesjs from 'grapesjs'; |
|
|
|
import en from 'grapesjs/locale/en'; |
|
|
|
import it from 'grapesjs/locale/it'; |
|
|
|
import tr from 'grapesjs/locale/tr'; |
|
|
|
|
|
|
|
const editor = grapesjs.init({ |
|
|
|
... |
|
|
|
@ -32,7 +32,7 @@ const editor = grapesjs.init({ |
|
|
|
// locale: 'en', // default locale |
|
|
|
// detectLocale: true, // by default, the editor will detect the language |
|
|
|
// localeFallback: 'en', // default fallback |
|
|
|
messages: { en, it }, |
|
|
|
messages: { it, tr }, |
|
|
|
} |
|
|
|
}); |
|
|
|
``` |
|
|
|
|