twill
twill copied to clipboard
[2.x] Support Chinese slug
Modify the slugify function to accept Chinese character as slug, it should work with setting appropriate config twill.slug_utf8_languages
Holding this one back for testing with https://github.com/area17/twill/pull/1897
Hey @thingasd
Could you tell me what is expect to be the slug for when I for example enter:
-
test-知道
-
知道
-
知道bar知道
Kind regards,
Hey @thingasd
Could you tell me what is expect to be the slug for when I for example enter:
test-知道
知道
知道bar知道
Kind regards,
test-知道 知道 知道bar知道
ok, so slugs can actually contain chinese characters?
ok, so slugs can actually contain chinese characters?
This pr allows slugs to contain Chinese characters, which can be used in the URL for improving the readability. i.e. http://www.example.com/例子