Widget Translation

Hello,

I’ve translated one of the widgets into Portuguese. On our website, the English version uses the standard .edu URL structure, while the Portuguese pages use .edu/pt.

My question is: Is there a way to ensure the Portuguese version of the widget always displays on the Portuguese pages—rather than relying on the user’s browser language settings?