Issue #1398Opened September 2, 2018by huzineczerik0 reactions

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:

  • kk5
  • kk7
  • kk9
  • kk10

I checked the issues #26 but I dont understand how to translate all texts.

Thank You, Erik

Answers (3)

artfSeptember 2, 20180 reactions

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' })
huzineczerikSeptember 3, 20180 reactions

Thank You @artf ,

I tried but did not work kk 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

huzineczerikSeptember 3, 20180 reactions

image so I tried does not work

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...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.