Forum Discussion
VarshaTiwari
Apr 17, 2025Copper Contributor
Event Listeners Not Working After Translating SharePoint Page with SPFx Extension
Hello everyone, I'm developing a SharePoint Framework (SPFx) extension to translate SharePoint pages using a language viewer API. The extension includes a dropdown menu for language selection, and i...
MartinLaplante
Apr 19, 2025Iron Contributor
Hi Varsha,
I'm sorry to rain on your parade, but when our company first developed our PointFire page translation app, we found that this approach causes this problem and several others. Some issues are specific to some languages, and some will affect one page and not a seemingly identical page. Fundamentally, changing the DOM on a page as it is being rendered is a dangerous technique which should be avoided. SharePoint has a lot of html that translation engines don't like and that will break SharePoint if you change it.