We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Could we do something like this in order to make the block title translatable?
{{-- Title: __('My custom block') Description: __('This is my custom block!') --}}
The text was updated successfully, but these errors were encountered:
If translation is a must, you could add a filter:
add_filter('sage/blocks/my-custom-block/register-data', function ($data) { $data['title'] = __('My custom block title', 'sage'); $data['description'] = __('My custom block description', 'sage'); return $data; });
As an alternative, you can use the acf/register_block_type_args filter in the same way if you want to add translations in only one function.
acf/register_block_type_args
Sorry, something went wrong.
No branches or pull requests
Could we do something like this in order to make the block title translatable?
{{--
Title: __('My custom block')
Description: __('This is my custom block!')
--}}
The text was updated successfully, but these errors were encountered: