How to override languages files in wp-content/languages/themes with child theme
I want to create a child theme for TwentyFifteen theme, which will customize a lot of things, including translation. When I install WordPress in my language (Farsi), it includes TwentyFifteen language files in wp-content/languages/themes
So when I create a languages
folder in my child theme and add customized language files to it and add load_theme_textdomain( 'twentyfifteen', get_stylesheet_directory() . '/languages' )
to my child theme's functions.php
my customized language files do not load and instead the files in wp-content/languages/themes
load. What can I do to override those files?
Topic textdomain translation child-theme hooks Wordpress
Category Web