Internationalize date format (#2685)

* Changed view_date helper to use datetime format from i18n

* Removed German translation for date format, should be added via
transifex

Co-authored-by: Henning Schumann <henning.schumann@unicode-it.de>
Co-authored-by: Ahmad Farhat <ahmad.af.farhat@gmail.com>
This commit is contained in:
Henning 2021-06-08 00:32:18 +02:00 committed by GitHub
parent 75fd49aa7e
commit b61df09b94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -135,6 +135,6 @@ module ApplicationHelper
# Returns a more friendly/readable date time object
def view_date(date)
return "" if date.nil? # Handle invalid dates
local_time(date, "%b %d, %Y %-I:%M%P")
local_time(date, :default)
end
end

View File

@ -645,6 +645,9 @@ en:
test_install: >
This deployment is using a pre-configured testing server, you should replace this with your own.
For details, see the %{href}.
time:
formats:
default: "%b %d, %Y %-I:%M%P"
update: Update
verify:
accept: Verify