Forum: Rails I18n Number format helpers - standalone?

Posted by Christoph B. (christoph_b)
on 2011-04-05 10:21
(Received via mailing list)
Hey, just a question out of interest:

I recently created a sinatra project and used ruby-i18n in it. I
noticed that there are yaml files for date formats (and also numbers)
in the rails-i18n project.
They worked out of the box for dates.

So I wondered if there are number format helpers, and although the
formats are in the above mentioned files,
the helpers are in ActiveView:

http://api.rubyonrails.org/classes/ActionView/Helpers/NumberHelper.html

So to use them with a standalone ruby project you have to extract it.
Is there a reason behind that? Wouldn't it make sense to include this
in ruby-i18n or rails-i18n?

Just wondering about the reasons
Thanks,
Christoph
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.