gosimple/slug

should not be english

eturerer opened this issue · 1 comments

text := slug.Make("Hellö Wörld & хелло ворлд")
fmt.Println(text) // Will print: "hello-world-(and)-khello-vorld"

correct
fmt.Println(text) // Will print: "hello-world-khello-vorld"

Changing & to and in different languages was my exact reason for creating this package.
You can achieve what you want with configuring CustomSub:

slug.CustomSub = map[string]string{"&": ""}