mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 15:20:13 +01:00
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:
parent
bb2bcd7245
commit
5a6ee73d7d
11 changed files with 310 additions and 12 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue