I've added an extension to the main translate function that allows for an object to be passed in for dynamic variables, that will then replace all of them based on the keys. I think this is something that will come in handy in other places as well.