-
Notifications
You must be signed in to change notification settings - Fork 4
Add :pretty to ago #83
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
base: master
Are you sure you want to change the base?
Conversation
|
@ramzieus Thanks for your contribution, we appreciate it! Before we can merge this pull request, we need to see all CI workflows pass without errors. We can't merge the pull request into the master branch unless all workflows are green. Try to fix them, also paying attention to code style issues. |
Those issues are related to copyright, okay I'll fix them |
lib/tago.rb
Outdated
| locals[locale] | ||
| end | ||
|
|
||
| def number_to_words(value) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ramzieus we shouldn't pollute Float class with so many methods. The only method that we can add to Float is seconds.
|
@yegor256 I think it's better to use i18n gem for translation |
lib/tago.rb
Outdated
| # Author:: Ramzi Hemadou (ramzihemadou@gmail.com) | ||
| # Copyright:: Copyright (c) 2025-2026 Ramzi Hemadou | ||
| # License:: MIT | ||
| class Translate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ramzieus why can't you put all this functionality into the seconds function. Making another global class is an overkill for such a small library.
closes #56