You'd have to create a custom client library for the popup behavior. And make sure you use data-attribute's from sightly, so you can pass in the component's properties to it, so your JavaScript can utilize it to print the correct words within the popup.