Hi there,
is there anyone familiar with how to setup internationalization with bricks for the builder?
I tried useing the bricks/builder/i18n
filter but I can’t get it to work.
If I use it like this, the default bricks translations are lost, but without the load_child_theme_textdomain
function it won’t work at all.
add_action('after_setup_theme', function () {
load_child_theme_textdomain('bricks', PATH_THEME . '/lang');
}, 11);
add_filter('bricks/builder/i18n', function ($i18n) {
$i18n['ufContentFlow'] = esc_html__('Content-Flow', 'bricks');
$i18n['ufDisableContentFlow'] = esc_html__('Disable Content-Flow', 'bricks');
$i18n['ufFlowExplanation'] = esc_html__('Add space between content items,for a flowing layout', 'bricks');
return $i18n;
}, 1);
How do I need to setup my Text Domain and Domain Path in the style.css?
This what it looks like at the moment, but I also trief a custom name for the Text-Domain
/*
Theme Name: userfreunde Theme
Theme URI: https://userfreunde.de/
Description: Custom userfreunde child theme to extend Bricks.
Author: userfreunde GmbH
Theme URI: https://userfreunde.de/
GitLab Theme URI: ***********
Template: bricks
Version: 0.1.2
Text Domain: bricks
Domain Path: /lang
*/
I have a folder in my root theme folder lang, where the necessary translations are stored as e.g. de_DE.mo,de_DE.po and bricks.pot.
Any Idea what I’m doing wrong?
Help would be greatly appreciated
Best regards Suat