twill icon indicating copy to clipboard operation
twill copied to clipboard

[2.x] Support Chinese slug

Open thingasd opened this issue 2 years ago • 5 comments

Modify the slugify function to accept Chinese character as slug, it should work with setting appropriate config twill.slug_utf8_languages

thingasd avatar Nov 14 '22 10:11 thingasd

Holding this one back for testing with https://github.com/area17/twill/pull/1897

haringsrob avatar Nov 16 '22 09:11 haringsrob

Hey @thingasd

Could you tell me what is expect to be the slug for when I for example enter:

  • test-知道
  • 知道
  • 知道bar知道

Kind regards,

haringsrob avatar Jan 20 '23 10:01 haringsrob

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知道

thingasd avatar Jan 20 '23 10:01 thingasd

ok, so slugs can actually contain chinese characters?

haringsrob avatar Jan 20 '23 10:01 haringsrob

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/例子

thingasd avatar Jan 27 '23 04:01 thingasd