0

I'm using WPGlobus plugin with REST API, For fetching data from posts now if I fetching content of pages it shows me like,

"content": "{:nl}De korting wordt automatisch berekend aan de hand van o.a. aantallen stuks, order grootte en aantal adressen.\r\n{:}{:en}The discount is automatically calculated on the basis of, among other things, the number of pieces, order size and number of addresses.\r\n{:}"

Instead of this I need,

NL = De korting wordt automatisch berekend aan de hand van o.a. aantallen stuks, order grootte en aantal adressen.

EN = The discount is automatically calculated on the basis of, among other things, the number of pieces, order size and number of addresses.

So question is how can I differentiate content by language.

3
  • For your output, do you mean you want the output to vary depending on a language request parameter, or you mean change it from the {:nl} format to your equals format but as a single string, or something else? – Rup Jun 24 '19 at 11:08
  • And at first glance from the WP Globus FAQ this should just work. So possibly worth raising a support request with them? – Rup Jun 24 '19 at 11:08
  • @Rup - You are right I need output to vary depending on a language request parameter. Unfortunately wpglobus.com/faq/wpglobus-json-api-support doesn't work for me – Parth Shah Jun 24 '19 at 11:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.