GrapesJS translate
Question
Hello @artf ,
Do I want to translate all functions into Hungarian, so that I can do it?
Please give me examples of how to modify these texts:
I checked the issues #26 but I dont understand how to translate all texts.
Thank You, Erik
Answers (3)
Hi @huzineczerik if you check the Getting Started guide you will see that all the texts are defined by the configuration object. If your goal is to extend an existing preset in that case you have to access each element of the module via its API. Let's say for example you'd like to change the label of some block, you would do this:
editor.BlockManager.get('ID-OF-THE-BLOCK').set({ label: 'Some label' })
the same for some style property
editor.StyleManager.getProperty('Dimension', 'height').set({ name: 'Some name' })
Thank You @artf ,
I tried but did not work
What do I do wrong?
UPDATE It only works if I write this after init. If I call from the console, it will not work
so I tried
does not work
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1402
Translate Panel options and DeviceManager buttons
Helllo @artf , How to translate the Panels and DeviceManager button titles to other languages? Please write example for me. 'FullScreen' ->...
Issue #1780
How to change extra dropdown for link change trait
Hello @artf , I want to give one more functionality to user like user can change any link with default links drop down. In above image i wa...
Issue #1514
How to add video block on blockManager
Hello All. i want to add a video block on blockmanager same as mentioned on below snapshot i am using following code for adding video block...
Issue #1294
How to add category for default block manager?
@artf I want put all default blocks to category named "Basic". But I can't find any documents about it. I use editor.BlockManager.getAll()....
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.



