<%= javascript_include_tag 'application' %>
<% if asset_available?("moment/locale/#{Rails.application.secrets.moment_locale}.js") %>
<%
elsif Rails.application.secrets.moment_locale != 'en'
raise LoadError, "moment/locale/#{Rails.application.secrets.moment_locale}.js does not exists"
end
%>
<% if asset_available?("summernote/lang/summernote-#{Rails.application.secrets.summernote_locale}.js") %>
<%
elsif Rails.application.secrets.summernote_locale != 'en-US'
raise LoadError, "summernote/lang/summernote-#{Rails.application.secrets.summernote_locale}.js does not exists"
end
%>
<% if asset_available?("fullcalendar/dist/lang/#{Rails.application.secrets.fullcalendar_locale}.js") %>
<%
elsif Rails.application.secrets.fullcalendar_locale != 'en'
raise LoadError, "fullcalendar/dist/lang/#{Rails.application.secrets.fullcalendar_locale}.js does not exists"
end
%>