New answers tagged

0

In short, here's the solution that worked in my case: <?php function my_theme_ajax_load_more_products() { // Using the load_textdomain() function to make sure that // the translation file used in the template below is loaded. // This is the line that solves the issue, more on it bellow. load_textdomain('woocommerce', WP_CONTENT_DIR . '/...


1

I did manage to solve this later on by using WPML, but over time found that WPML is quite bloaty and slow, support not very good, and if you need only 1 language (but original strings for theme are in English and the language you need is not) or perhaps 2, you do not need it. The only thing you need is: Set LOCALE in your theme .env or wp-config.php. An ...


Top 50 recent answers are included