Setting frontend locale based on postmeta not loading translation
Ok, I’v found out a way to do it with query_var. Looks like the problem was that locale was set to late in loading process. If meta field/value exists redirect to page with ?lang=lang-attribute, and then set locale based on that. function si_update_locale( $lang ) { if ( isset( $_GET[‘lang’] ) && ! empty( $_GET[‘lang’] … Read more