• Resolved rom22

    (@rom22)


    Hi,
    First of all, your plugins is great! I just tested it, and it’s much better than any other I have used before.

    But my problem is : I’m using the wp rest Api, and it seems the json are not translated.
    I tried accessing it like this mysite.com/wp-json/wp/v2/posts/?per_page=12&lang=de
    but it’s still in french.
    The json are not translated or I’m not using the right url to get it ?
    Thanks for the help,
    Best regards,

    Romain

Viewing 1 replies (of 1 total)
  • Plugin Author Remy B

    (@remyb92)

    Hi Romain,

    Yes, it’s because Weglot uses the URL to get the language like /de/
    Did you try mysite.com/de/wp-json/wp/v2/posts/?per_page=12 ?

Viewing 1 replies (of 1 total)
  • The topic ‘rest api’ is closed to new replies.