提交 08724cc1 编写于 作者: R Rafael França

Merge pull request #22775 from derekprior/dp-number-to-currency-docs

Add i18n caveat to number_to_currency docs [ci skip]
......@@ -63,6 +63,14 @@ def number_to_phone(number, options = {})
# Formats a +number+ into a currency string (e.g., $13.65). You
# can customize the format in the +options+ hash.
#
# The currency unit and number formatting of the current locale will be used
# unless otherwise specified in the provided options. No currency conversion
# is performed. If the user is given a way to change their locale, they will
# also be able to change the relative value of the currency displayed with
# this helper. If your application will ever support multiple locales, you
# may want to specify a constant <tt>:locale</tt> option or consider
# using a library capable of currency conversion.
#
# ==== Options
#
# * <tt>:locale</tt> - Sets the locale to be used for formatting
......
......@@ -47,6 +47,14 @@ def number_to_phone(number, options = {})
# Formats a +number+ into a currency string (e.g., $13.65). You
# can customize the format in the +options+ hash.
#
# The currency unit and number formatting of the current locale will be used
# unless otherwise specified in the provided options. No currency conversion
# is performed. If the user is given a way to change their locale, they will
# also be able to change the relative value of the currency displayed with
# this helper. If your application will ever support multiple locales, you
# may want to specify a constant <tt>:locale</tt> option or consider
# using a library capable of currency conversion.
#
# ==== Options
#
# * <tt>:locale</tt> - Sets the locale to be used for formatting
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册