sindresorhus / pupa

Simple micro templating
MIT License
362 stars 22 forks source link

Does not support non-english letters? #27

Closed einarpersson closed 1 year ago

einarpersson commented 2 years ago

Hi! Thanks for providing a useful lib! ๐Ÿ‘

I discovered today that it seems as if names which contains Swedish letters รฅรครถ does not work. This is unfortunate, and I suspect this extends to other non-english letters as well?

I always use English when naming variables, but not in this case since these placeholders are to be used in a (Swedish) text context. So instead of using {owner} I really want to use {รคgare} (= owner in Swedish). This is useful because it makes it easier to adhere to correct grammar etc. and improves the experience for non-technical colleagues.

sindresorhus commented 1 year ago

I prefer to keep it ASCII. Supporting Swedish would not be a big problem, but then users would expect any language to be supported, and that complicates it.