Issue #2721πŸ’¬ AnsweredOpened April 17, 2020by alex19891 reactions

Can not import any locale file from grapesjs/locale/

Quick answerby padcom❀ 1

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)

padcomβ€’ March 21, 2025

With the change provided by PR #6459 it is now possible to do the following: Make sure you also load the styles correctly:

willGabrielPereiraβ€’ January 30, 2023

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.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins β†’
Premium option

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.