get locale for API query from wordpress

using: substr( get_bloginfo( 'language' ), 0, 2),