How To Move Custom Translation To Child Theme - kary4/divituts GitHub Wiki
Create "lang" and "/includes/builder/languages" folder in child theme folder and put .po and .mo files there. Then add the following code to child theme functions.php:
function et_child_theme_setup() {
load_child_theme_textdomain( 'extra', get_stylesheet_directory() . '/lang' );
load_child_theme_textdomain( 'et_builder', get_stylesheet_directory() . '/includes/builder/languages' );
}
add_action( 'after_setup_theme', 'et_child_theme_setup', 0 );
tutorial: https://www.themeum.com/how-to-translate-a-wordpress-theme-with-poedit/