1 min readMay 2, 2019
You mean languages not using the Latin alphabet? Not directly. You’d have to adapt replacements for each given language, but could probably apply the same logic. There’s only one language-relevant replacement in the current snippet, which is:
.replace(/&/g, ‘-and-’)
You could simply comment that out.