Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Format distance in accordance with the requested locale #363

Closed
rinigus opened this issue Nov 4, 2019 · 1 comment
Closed

Format distance in accordance with the requested locale #363

rinigus opened this issue Nov 4, 2019 · 1 comment

Comments

@rinigus
Copy link
Owner

rinigus commented Nov 4, 2019

As explained in #362, distance has to be formatted correctly, in accordance with locale:

3.6 -> 3.6 in EN
-> 3,6 in DE

Distance is formatted in format_distance_* functions of util.py. Should make them requested locale-aware (as requested by language of narrative instructions)

@rinigus
Copy link
Owner Author

rinigus commented Mar 9, 2020

Looks like Babel can be used for it: http://babel.pocoo.org/en/latest/numbers.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant