Remix.run Logo
Thorrez 3 days ago

> // translate will replace all instances; only need to run it once

That comment is not helpful, because it's wrong. The translate() function just is some sort of lookup. It doesn't replace anything. It's the stringToReplace.replace() call that replaces all instances.