ActionView::Helpers::TranslationHelper
localize
API docs (Rails 8.1.4.1) ↗Alias: l
def localize(object, **options)
Description
Converts a date or time to a string in a translated format.
ERB
Changes from the previous output: Added Removed Changed
HTML
Preview
Form submission
Form data
| name | value |
|---|
Request body
Content-Type:
params