hanling internationnalization files
This commit is contained in:
parent
456e0ae24c
commit
afceecbb6b
|
|
@ -5,7 +5,6 @@
|
||||||
* Description: Un série de Blocks sur mesure pour l'écriture du contenu Homegrade
|
* Description: Un série de Blocks sur mesure pour l'écriture du contenu Homegrade
|
||||||
* Author: Deligraph
|
* Author: Deligraph
|
||||||
* Text Domain: homegrade-blocks
|
* Text Domain: homegrade-blocks
|
||||||
* Domain Path: /languages
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* ---------------------------
|
/* ---------------------------
|
||||||
|
|
@ -82,17 +81,19 @@ function create_block_multiblocks_block_init()
|
||||||
|
|
||||||
// ACF
|
// ACF
|
||||||
register_block_type(__DIR__ . '/blocks/google-map');
|
register_block_type(__DIR__ . '/blocks/google-map');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// SET SCRIPT TRANSLATIONS
|
|
||||||
wp_set_script_translations("internationnalisation-script", 'homegrade-blocks', plugin_basename(__DIR__) . '/languages/');
|
|
||||||
// wp_set_script_translations("internationnalisation", 'homegrade-blocks', plugin_basename(__DIR__) . '/languages/');
|
|
||||||
}
|
}
|
||||||
add_action('init', 'create_block_multiblocks_block_init');
|
add_action('init', 'create_block_multiblocks_block_init');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
//##### SET SCRIPT TRANSLATIONS
|
||||||
|
function set_translation_script()
|
||||||
|
{
|
||||||
|
wp_set_script_translations("homegrade-content-blocks-communiques-presse-feed-editor-script", 'homegrade-blocks', plugin_dir_path(__FILE__) . 'languages');
|
||||||
|
}
|
||||||
|
add_action('init', 'set_translation_script');
|
||||||
|
|
||||||
|
|
||||||
/* ---------------------------
|
/* ---------------------------
|
||||||
ENQUEUE EDITOR JS CONTEXT
|
ENQUEUE EDITOR JS CONTEXT
|
||||||
---------------------------*/
|
---------------------------*/
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user