提交 4d8abebf 编写于 作者: Z Zachary Scott

Nitpick 💅 [ci skip]

上级 c3133f50
...@@ -71,6 +71,7 @@ module DateHelper ...@@ -71,6 +71,7 @@ module DateHelper
# #
# With the <tt>scope</tt> you can define a custom scope for Rails lookup # With the <tt>scope</tt> you can define a custom scope for Rails lookup
# the translation. # the translation.
#
# For example you can define the following in your locale (e.g. en.yml). # For example you can define the following in your locale (e.g. en.yml).
# #
# datetime: # datetime:
...@@ -83,7 +84,7 @@ module DateHelper ...@@ -83,7 +84,7 @@ module DateHelper
# See https://github.com/svenfuchs/rails-i18n/blob/master/rails/locale/en.yml # See https://github.com/svenfuchs/rails-i18n/blob/master/rails/locale/en.yml
# for more examples. # for more examples.
# #
# Which then will result in the following: # Which will then result in the following:
# #
# from_time = Time.now # from_time = Time.now
# distance_of_time_in_words(from_time, from_time + 50.minutes, scope: 'datetime.distance_in_words.short') # => 1 hr # distance_of_time_in_words(from_time, from_time + 50.minutes, scope: 'datetime.distance_in_words.short') # => 1 hr
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册