• Resolved ikramy

    (@ikramy)


    Hi,

    I’m not sure how to get data from the WooCommerce API for a specific language. My website is multilingual and I need to call the API with specific language code (say ‘de’) and get the result in that language only.

    Currently, if I call wp-json/wc/v3/products/categories I get the categories in English (the default language).

    Please help
    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @ikramy,

    In order for this to be possible, qTranslateX would need to modify the WooCommerce REST API endpoints to include the other translations or add their own endpoints that are language-dependent. There’s not anything built into the WooCommerce core to handle multiple languages in the REST API.

    I would reach out to the developers of qTranslateX and ask them if they have anyway to get alternate translations with the WooCommerce REST API. If it’s part of their plugin, they’ll know about it.

    If nothing exists, you may be able to have something custom coded. There are freelancers available at Codeable that could help you make those changes.

    Take care

    Thread Starter ikramy

    (@ikramy)

    Thank you very much. I will contact qTranslateX owners then.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WooCommerce API and qTranslateX’ is closed to new replies.