Can not import any locale file from grapesjs/locale/
With the change provided by PR #6459 it is now possible to do the following: Make sure you also load the styles correctly:
Read full answer below βQuestion
Hi I run into an error when I'm trying to import any locale file from 'grapejs/locale' by using es6 import I followed by the documentation: https://grapesjs.com/docs/modules/I18n.html#configuration but I always get this: I can import it only in next way Could you explain why I can't import it directly from grapesjs/locale/. grapejs was installed by npm install grapejs is latest version (0.16.3)
Answers (3)
With the change provided by PR #6459 it is now possible to do the following: Make sure you also load the styles correctly:
Should be fixed in https://github.com/artf/grapesjs/releases/tag/v0.16.12
It still don't works, only works from "src/i18n/locale/...." Using v0.20.3
Related Questions and Answers
Continue research with similar issue discussions.
Issue #4385
index.d.ts says that run commands should return void but docs say their return value may be used
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Any Reproducible demo link https://grapesj...
Issue #5112
GrapeJS/drag and drop not working for Brave on Linux and Wayland
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Version 1.51.110 Chromium: 113.0.5672.77 (...
Issue #1894
[BUG] Custom Trait documentation example doesn't work
Specifically this: https://grapesjs.com/docs/modules/Traits.html#define-new-trait-type First of all, the keyUp event references onChange wh...
Issue #4384
index.d.ts says that components must be Backbone.Collection<Component> but the docs say Component[] is also accepted
GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? AnyReproducible demo link https://grapesjs.c...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.
Browse free plugins βPremium plugins ship with support, regular updates, and production-ready features β save days of integration work.
Browse premium plugins βBrowse Plugin Categories
Jump directly to plugin category pages on the marketplace.