Block menu texts are not translated as below image (French).
Though there are translation files of French and Japanese in mo and JSON format, almost all texts are not translated except "Presentation Cover Image" menu that was translated in PHP side (register.php). See bottom of the 1st image.
We need invoke wp_register_script() and wp_set_script_translations() to load translation file of JSON format for JavaScript sources. See 2nd image for applied result.
Block menu texts are not translated as below image (French).
Though there are translation files of French and Japanese in mo and JSON format, almost all texts are not translated except "Presentation Cover Image" menu that was translated in PHP side (register.php). See bottom of the 1st image.
We need invoke
wp_register_script()
andwp_set_script_translations()
to load translation file of JSON format for JavaScript sources. See 2nd image for applied result.before fix:
after fix: