Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Maybellyne

    (@maybellyne)

    Hello Quintinm,

    Thanks for reaching out.

    Can you confirm if you are using one of the supported og:locale designations?

    Thread Starter Quintinm

    (@quintinm)

    Hi.
    I am using the en_za designation.
    I checked again today and it still shows: og:locale en_US

    The site language is set so South African and i have this in the functions.php

    /**
     * Changes the locale output.
     * 
     * @param string $locale The current locale.
     * 
     * @return string The locale.
     */
    function yst_wpseo_change_og_locale( $locale ) {
        return 'en_ZA';
    }
    
    add_filter( 'wpseo_locale', 'yst_wpseo_change_og_locale' );
    

    what else do i need to do?

    Ali Darwich

    (@tokyobiyori)

    SUPER-O EL MOPO

    Hello @quintinm,

    Thanks for your reply. I just tried it with nl_NL and that snippet worked, so I checked, and it seems like en_ZA is still not supported by Facebook, which is probably why it’s not working. I’m asking my team to review this to see if it’s valid, and we’ll follow up with you soon.

    Ali Darwich

    (@tokyobiyori)

    SUPER-O EL MOPO

    Hello @quintinm,

    I just confirmed this with my team. Unfortunately en_ZA is still not supported by Facebook, so it won’t work ??

    Plugin Support devnihil

    (@devnihil)

    We are going ahead and marking this issue as resolved due to inactivity. If you require any further assistance please create a new issue.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘changing the locale output not reflecting’ is closed to new replies.