I have implemented a custom "Translate" button in Confluence using UI Fragments (Web Items). When clicked, the button triggers a REST endpoint, which:
Currently, clicking the button opens a new tab that returns a JSON response. Instead, I want the translation to:
I plan to use AJAX to call the REST API asynchronously and update the page’s DOM without requiring a page reload. My questions are:
innerHTML
, or is there a better way to handle translations efficiently?I want the button to consume the REST endpoint dynamically and apply the translation directly to the page’s body/content instead of redirecting to a new tab.
Or do I have to instead go with macros?
Would appreciate any insights or best practices on handling this in Confluence! 🚀
Hi Talha - Welcome to the Atlassian Community!
You probably want to open a support ticket with Atlassian since no one has responded so far.
https://support.atlassian.com/contact/#/
Please post back here with the resolution.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.