arrow icon indicating copy to clipboard operation
arrow copied to clipboard

Adding Support for Latin Alphabet Output on Indian Language Locales

Open anishnya opened this issue 4 years ago โ€ข 2 comments
trafficstars

Feature Request

I think it would be really nice if we were able to add support for Latin alphabet output for some of our Indian language locales. It is quite common for many websites to use the Latin alphabet when writing text in languages such as Hindi, so I think this would be a nice feature to add to Arrow.

Example with Humanize:

"a month ago" -> "เคเค• เคฎเคนเฅ€เคจเฅ‡ เคชเคนเคฒเฅ‡" (Devanagari script) "a month ago" -> "ek maheene pahale" (Latin Alphabet)

This could probably be some flag we add to methods like humanize and get. But, I also worry that we may end up adding too many flags/arguments to humanize, especially if we do end up adding features requested by #941 and #973 .

anishnya avatar May 08 '21 08:05 anishnya

Maybe we could create a new locale subclassed from the main Hindi one?

systemcatch avatar May 08 '21 09:05 systemcatch

@systemcatch How would we want to name it? hi-en? I think we have to be careful about breaking any naming locale naming conventions when doing so.

anishnya avatar May 11 '21 03:05 anishnya