Closed trony2020 closed 4 years ago
Current locale files are optimized only for importing them via import
but you always build them on your own
And how? Is anywhere documentation how to setup locale in vanilla js?
Same problem here, how we can set the locale in JavaScript vanilla?
Hi, to do localization is there a way to do it without using "import" ie with ?
From the docs:
import grapesjs from 'grapesjs'; import it from 'grapesjs/locale/it'; import tr from 'grapesjs/locale/tr'; const editor = grapesjs.init({ ... i18n: { // locale: 'en', // default locale // detectLocale: true, // by default, the editor will detect the language // localeFallback: 'en', // default fallback messages: { it, tr }, } });