Adding Translation Files To Your Child Theme

If you are using a child theme and if you have translation files please add the following code to your function.php file.

// Load translation files from your child theme instead of the parent theme
function my_child_theme_locale() {
load_child_theme_textdomain( 'total', get_stylesheet_directory() . '/languages' );
add_action( 'after_setup_theme', 'my_child_theme_locale' );

Then add your translated files inside a “languages” folder in the child theme.