-
Notifications
You must be signed in to change notification settings - Fork 196
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
Add Internationalization #84
Comments
No plans at this time! I'm fine with only supporting English, as it seems to be the "esperanto" of the internet — i think a great approach might to be a wrapper that translates the french/italian/etc/etc into english and then runs it through the parser. |
I think we can utilize the internationalization support from the pendulum library. Anyway maya has a dependency on pendulum |
@moin18 have an API proposal? |
I've had a look into this and it seems >>> import maya
>>> maya.when("2日前").slang_time()
'2 days ago'
>>> maya.when("il y a 2 jours").slang_time()
'2 days ago'
>>> maya.when("Vor 2 Tagen").slang_time()
'2 days ago' For |
@alxwrd Sounds great! |
This Issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days |
So I came across this library listening to your Podcast with Michael Kennedy and immediately loved this addition to your "python for humans" series. What discourages me though, is that there doesn't seem to be a possibility for changing the language. I saw that the
humanize
module you're using for the slang dates actually supports internationalization via i18n, so what steps would need to be taken to support full internationalization for this great piece of software?The text was updated successfully, but these errors were encountered: