• Resolved Vivian E

    (@vivibosslink)


    Hello,

    I just able to sort out my Google API issues and finally connected Google API to my site. Despite this, my translatepress auto translate s not working.

    I tested to see if I have configured the API correctly and got the following report.

    Kindly help!

    Response:
    
                    
    Array
    (
        [code] => 200
        [message] => OK
    )
                
    Response Body:
    
                    
    {
      "data": {
        "translations": [
          {
            "translatedText": "acerca de"
          }
        ]
      }
    }
                
    Entire Response From wp_remote_get():
    
                    
    Array
    (
        [headers] => WpOrg\Requests\Utility\CaseInsensitiveDictionary Object
            (
                [data:protected] => Array
                    (
                        [content-type] => application/json; charset=UTF-8
                        [vary] => Array
                            (
                                [0] => Origin
                                [1] => X-Origin
                                [2] => Referer
                            )
    
                        [content-encoding] => gzip
                        [date] => Mon, 08 May 2023 11:47:15 GMT
                        [server] => ESF
                        [cache-control] => private
                        [x-xss-protection] => 0
                        [x-frame-options] => SAMEORIGIN
                        [x-content-type-options] => nosniff
                        [alt-svc] => h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
                    )
    
            )
    
        [body] => {
      "data": {
        "translations": [
          {
            "translatedText": "acerca de"
          }
        ]
      }
    }
    
        [response] => Array
            (
                [code] => 200
                [message] => OK
            )
    
        [cookies] => Array
            (
            )
    
        [filename] => 
        [http_response] => WP_HTTP_Requests_Response Object
            (
                [data] => 
                [headers] => 
                [status] => 
                [response:protected] => WpOrg\Requests\Response Object
                    (
                        [body] => {
      "data": {
        "translations": [
          {
            "translatedText": "acerca de"
          }
        ]
      }
    }
    
                        [raw] => HTTP/1.1 200 OK
    Content-Type: application/json; charset=UTF-8
    Vary: Origin
    Vary: X-Origin
    Vary: Referer
    Content-Encoding: gzip
    Date: Mon, 08 May 2023 11:47:15 GMT
    Server: ESF
    Cache-Control: private
    X-XSS-Protection: 0
    X-Frame-Options: SAMEORIGIN
    X-Content-Type-Options: nosniff
    Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
    Connection: close
    Transfer-Encoding: chunked
    
    {
      "data": {
        "translations": [
          {
            "translatedText": "acerca de"
          }
        ]
      }
    }
    
                        [headers] => WpOrg\Requests\Response\Headers Object
                            (
                                [data:protected] => Array
                                    (
                                        [content-type] => Array
                                            (
                                                [0] => application/json; charset=UTF-8
                                            )
    
                                        [vary] => Array
                                            (
                                                [0] => Origin
                                                [1] => X-Origin
                                                [2] => Referer
                                            )
    
                                        [content-encoding] => Array
                                            (
                                                [0] => gzip
                                            )
    
                                        [date] => Array
                                            (
                                                [0] => Mon, 08 May 2023 11:47:15 GMT
                                            )
    
                                        [server] => Array
                                            (
                                                [0] => ESF
                                            )
    
                                        [cache-control] => Array
                                            (
                                                [0] => private
                                            )
    
                                        [x-xss-protection] => Array
                                            (
                                                [0] => 0
                                            )
    
                                        [x-frame-options] => Array
                                            (
                                                [0] => SAMEORIGIN
                                            )
    
                                        [x-content-type-options] => Array
                                            (
                                                [0] => nosniff
                                            )
    
                                        [alt-svc] => Array
                                            (
                                                [0] => h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
                                            )
    
                                    )
    
                            )
    
                        [status_code] => 200
                        [protocol_version] => 1.1
                        [success] => 1
                        [redirects] => 0
                        [url] => https://translation.googleapis.com/language/translate/v2
                        [history] => Array
                            (
                            )
    
                        [cookies] => WpOrg\Requests\Cookie\Jar Object
                            (
                                [cookies:protected] => Array
                                    (
                                    )
    
                            )
    
                    )
    
                [filename:protected] => 
            )
    
    )
                

    • This topic was modified 1 year, 6 months ago by Vivian E.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Support Alex

    (@alexcozmoslabs)

    Hi,

    From what I checked, you have translations on your website. Those are triggered when users access the page in that language. The translations are stored in your site’s local database so that the next time a visitor accesses the same page, it doesn’t need to query the Google API again for the same strings. This saves execution time and most importantly saves costs.

    However, if you still have the issue, be sure to not have any “Unsupported languages” message at the button of the same tab. If you have, please use the “Recheck” button (the message should be cleared) and hit “Save Changes” after. This should start the automatic engine.

Viewing 1 replies (of 1 total)
  • The topic ‘Auto translate not working’ is closed to new replies.