Skip to content

Make the Humanise function better #2294

@parduz

Description

@parduz

I think that a couple of changes in the Humanise function would help a lot non english users:

  1. "return rounded numbers istead of strings": i mean, instead of "More than 2 millions and a half" the function should return "More than 2000000 and a half" and let the voice manage the pronounciation. This would solve a lot of "speaking errors" at least with my Italian voice.
  2. "return an array": like [0] = "More than", [1] = "2000000", [2] = "and a half". This could allow an easier localization without the need to split the function output again if the order have to be altered.

The first one seems an easy task (if i'm not missing how other voices works), dunno about the second.

Metadata

Metadata

Assignees

No one assigned

    Labels

    localizationneeds thoughtFor when you need to slow down and consider things.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions