Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Anghel Emanuel

    (@anghelemanuel99)

    Hello there,

    Thank you for reaching us!

    The code using trp_translate should work. However, you need to make sure you have a translation for that exact string inside TranslatePress. To check this you can go to Settings -> Advanced  -> Debug -> Show regular strings tab in String Translation. Then go to Translate Site -> String translation -> Regular and search for your string there.

    If it’s not translated there, it won’t be returned by trp_translate.

    If there’s anything else, please let me know!

    Kind Regards,

    Thread Starter zakzag

    (@zakzag)

    Thanks for your answer!
    Unfortunately, even though the translation is available in the settings (as you mention and as you can see on screenshot) I am still not getting the correct translation.

    https://pasteboard.co/mGtWxC6JCPMo.jpg

    Interestingly if I use the default api without “en” in the url – then the translation works.

    • This reply was modified 2 years, 5 months ago by zakzag.
    Plugin Support Alex

    (@alexcozmoslabs)

    If you still need help on this topic, please, reply to this thread in order that my colleague to continue the investigation on the subject.

    Thread Starter zakzag

    (@zakzag)

    Yes, I am still looking for a solution.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘No translation using register_rest_api’ is closed to new replies.