diff --git src/bp-core/classes/class-bp-block.php src/bp-core/classes/class-bp-block.php
index 3f75a3644..baf31c837 100644
|
|
|
class BP_Block { |
| 186 | 186 | * @param string $editor_script The editor's script handle. |
| 187 | 187 | * @param string $name The block's name. |
| 188 | 188 | */ |
| 189 | | $domain = apply_filters( 'bp_block_translation_dir', 'buddypress', $this->block->editor_script, $name ); |
| | 189 | $translation_domain = apply_filters( 'bp_block_translation_domain', 'buddypress', $this->block->editor_script, $name ); |
| 190 | 190 | |
| 191 | 191 | // Try to load the translation. |
| 192 | | $translated = wp_set_script_translations( $this->block->editor_script, $domain, $translation_dir ); |
| | 192 | $translated = wp_set_script_translations( $this->block->editor_script, $translation_domain, $translation_dir ); |
| 193 | 193 | } |
| 194 | 194 | } |
| 195 | 195 | } |