How to set locale in ajax requests?

(this kind of issues is part of why my standard recommendation is to not have front end with two languages) The core reason to the problem is that your ajax returns text. AJAX should be treated like API which provide machine level values which the front end translate to human text. When your code is … Read more

How do I override a parent theme’s language files with a child theme?

you may use this below code for your problem: [1]: https://i.stack.imgur.com/5aX1D.png or use below code: add_action( ‘after_setup_theme’, function () { load_theme_textdomain( ‘your parent theme name’, get_stylesheet_directory() . ‘/languages/’ ); load_child_theme_textdomain( ‘your child theme name’, get_stylesheet_directory() . ‘/languages’ ); } );

Uninstall languages

Yes, you can delete the .mo and .po files without any negative effect, but they don’t cause any harm by just being there.

Different back-end language for different users?

We could try to filter the WPLANG option locale (see e.g. this approach from the related list here on the right by @brasofilo, that’s based on this one by @toscho ): /** * Override locale settings for the current (non-admin) user */ is_admin() && add_filter( ‘locale’, function( $locale ) { // Modify locale for non-admins … Read more