Closed Augigauki closed 7 months ago
Before I look into a solution on my end, can you test passing the locale into your slugify
config?
Something like this:
//...
slugify: { lower: true, remove: /[*+~.()'"!?#\.,:@]/g, locale: 'sv' }
//...
The full list of locale specific transliterations are here https://github.com/simov/slugify/blob/master/config/locales.json
We use https://www.npmjs.com/package/slugify under the hood as outlined under the Options for https://github.com/NouanceLabs/payload-better-fields-plugin#slug-field
Adding the locale worked well! Thanks for the tip :)
The character
æ
correctly converts toae
, but charactersø
andå
incorrectly converts too
anda
. They should instead convert tooe
(ø/ö) andaa
(å) respectively.In swedish ä = æ, so
ä
should convert toae
as well.