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

There would be a need for support for conjugation of time units. #138

Open
hgabor995 opened this issue Mar 3, 2021 · 2 comments
Open

There would be a need for support for conjugation of time units. #138

hgabor995 opened this issue Mar 3, 2021 · 2 comments

Comments

@hgabor995
Copy link

First of all, I apologize for my poor English, but I have even little knowledge of the language so I called the Google Translator for help.

There are languages where translation could be solved without conjugation, but in ordinary language is used this.

For example, in Hungarian:

a minute ago      -> egy perce      // perc -e
a minute from now -> egy perc múlva // perc

an hour ago       -> egy órája      // órá -ja (different suffix)
an hour from now  -> egy óra múlva  // óra     (no accent)

There is currently no way to do this, as the suffix also depends on the unit of time, over and above that the root of the word may changes when it is conjugated.

I was could to use a "hack", which assumes that suffixAgo or suffixFromNow is called sooner than the methods for time units.
So if the order changes later, it can ruin my solution.

It would also be sufficient if the time unit methods also would get the value of _allowFromNow.

Thank you in advance for your help

@LiisiKerik
Copy link

I made a PR yesterday (for Estonian, which has a similar grammatical case system).

@drobilc
Copy link

drobilc commented Oct 7, 2022

This also happens in Slovenian language

2 minutes ago -> pred 2 minutama
2 minutes from now -> čez 2 minuti

3 hours ago -> pred 3 urami
3 hours from now -> čez 3 ure

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

3 participants