Support » Plugin: WP REST API (WP API) » change api response language

  • hi

    can you provide me the information how can i change api response language.
    i want to change api response in multiple language like (French,Italian and Russian)
    plz reply ASAP.

Viewing 3 replies - 1 through 3 (of 3 total)
  • what do you mean for api language?
    as far as I know the api is language-agnostic, it “only” send and receive WP contents.

    Or do you want to get/post content in different languages based on user choice (maybe thanks to plugins like WPML or similar?)

    (the more information you provide on your context and what you want to make, the more probability to get useful response you get)

    Stefano

    Hi Stefano,

    Thank’s for reply,
    i want to get/post content in different language as per user choice. can WPML plugin provide it?
    example:
    Request Url :
    (GET) http://localhost:81/wordpressapi/wp-json/wp/v2/posts/1?lang=fr
    above url get posts result in french language.

    I know very little about WPML, I think your best choice is to ask on the WPML forum if and how they support the REST API.

    Stefano

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘change api response language’ is closed to new replies.