Precompile datepicker i18n files for each language.

Not an optimal solution, because it uses files from our own repository instead of the bundle, but found no other solution for now.
This commit is contained in:
Jyri-Petteri Paloposki 2021-08-25 21:15:18 +03:00
parent bb2bcd7245
commit 5a6ee73d7d
11 changed files with 310 additions and 12 deletions

View file

@ -168,11 +168,11 @@ module ApplicationHelper
end
def javascript_tag_for_i18n_datepicker
# locale = I18n.locale
locale = I18n.locale
# do not include en as locale since this the available by default
# if locale && locale != :en
# javascript_include_tag("jquery-ui/i18n/datepicker-#{locale}")
# end
if locale && locale != :en
javascript_include_tag("datepicker-#{locale}")
end
end
def done_path(controller_name, type)