mirror of
https://github.com/Evolix/chexpire.git
synced 2024-06-26 19:12:53 +02:00
10 lines
219 B
Ruby
10 lines
219 B
Ruby
module ApplicationHelper
|
|
def format_utc(time, format: :default)
|
|
l(time.utc, format: format)
|
|
end
|
|
|
|
def available_locales_collection
|
|
I18n.available_locales.map { |k| [t("shared.locales.#{k}"), k] }
|
|
end
|
|
end
|