Automattic / isolated-block-editor

Repackages Gutenberg's editor playground as a full-featured multi-instance editor that does not require WordPress.
343 stars 50 forks source link

Problem with localization in some parts #249

Open miraxsage opened 11 months ago

miraxsage commented 11 months ago

Hello! First of all I would like to thank you for that much useful package, it helps a lot. I've almost managed all issues myself, but can't find origin of problem with localization. I am using wordpress site and want to insert gutenberg at some my page in admin menu. I've done all by readme instructions and over some time got working instance, but what is the problem - that some parts of editor are still in english in the same time when at the standard post editor they all are in russian, It is so despite I use @wordpress/scripts and point all js-dependencies in php and of course use iso php class to load all necessary stuff, connect editor settings from iso class to IsolatedBlockEditor.settings.editor over json and so on. Can you please help me, just to point some tip, what can I check else? For example here are images with editor in my page and in standart editor: 1 3

miraxsage commented 11 months ago

Who encountered with this issue look to adding in iso-gutenberg.php in load function further code: // Preload server-registered block schemas. wp_add_inline_script( 'wp-blocks', 'wp.blocks.unstable__bootstrapServerSideBlockDefinitions(' . wp_json_encode( get_block_editor_server_block_settings() ) . ');' );