Hello,
I had similar problem but from the other side.
I have followed this tutorial: https://docs.oceanwp.org/article/258-add-language-files-in-child-theme
And code from there didn’t work.
I’ve copied anish6 code and it worked. As I am not a coder, dont know the difference. Could someone tell me?
WORKING:
function oceanwp_child_setup() {
$path = get_stylesheet_directory().'/languages';
load_child_theme_textdomain( 'oceanwp', $path );
}
add_action( 'after_setup_theme', 'oceanwp_child_setup' );
NOT WORKING:
function my_child_theme_locale() {
load_child_theme_textdomain( 'ocean', get_stylesheet_directory() . '/languages' );
}
add_action( 'after_setup_theme', 'my_child_theme_locale' );