Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with localization in some parts #249

Open
miraxsage opened this issue Dec 6, 2023 · 1 comment
Open

Problem with localization in some parts #249

miraxsage opened this issue Dec 6, 2023 · 1 comment

Comments

@miraxsage
Copy link

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 miraxsage changed the title Problem with localization some parts Problem with localization in some parts Dec 6, 2023
@miraxsage
Copy link
Author

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() ) . ');' );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant