How do you manage change of language/terminology in a scalable way for documentation (internal communication)

As UX Designers, we change and create words for things in the UI. Sometimes those are labels, sometimes error messages etc.

I've found it very difficult to keep documentation - say confluence up to date with the correct terms. I would love to be able to insert a token in the documentation that would change a specific term en masse - but I have no idea how this could be done.

This also extends to the UI itself - how have you changed words en masse in an efficient way?