mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-17 06:52:27 +01:00
moved locales files into the main application pack
This commit is contained in:
parent
512411eb04
commit
4f5f54a66a
@ -6,6 +6,7 @@ import {} from 'jquery-ujs';
|
||||
import 'bootstrap-sass';
|
||||
import '../src/javascript/lib/polyfill';
|
||||
import 'angular';
|
||||
import 'angular-i18n/angular-locale_<%= Rails.application.secrets.angular_locale %>.js';
|
||||
import 'angular-cookies';
|
||||
import 'angular-resource';
|
||||
import 'angular-sanitize';
|
||||
@ -14,9 +15,11 @@ import '@uirouter/angularjs';
|
||||
import 'angular-ui-bootstrap';
|
||||
import 'ui-select';
|
||||
import 'moment';
|
||||
import 'moment/locale/<%= Rails.application.secrets.moment_locale %>.js';
|
||||
import 'moment-timezone';
|
||||
import 'angular-ui-calendar';
|
||||
import 'fullcalendar';
|
||||
import 'fullcalendar/dist/locale/<%= Rails.application.secrets.fullcalendar_locale %>.js';
|
||||
import 'angular-moment';
|
||||
import 'ngUpload';
|
||||
import 'jasny-bootstrap/js/fileinput';
|
||||
@ -43,6 +46,7 @@ import 'bootstrap-switch/dist/js/bootstrap-switch';
|
||||
import 'angular-bootstrap-switch/dist/angular-bootstrap-switch';
|
||||
import 'angular-base64-upload/dist/angular-base64-upload.min';
|
||||
import 'summernote';
|
||||
import 'summernote/lang/summernote-<%= Rails.application.secrets.summernote_locale %>.js';
|
||||
import 'angular-summernote/dist/angular-summernote';
|
||||
import '../src/javascript/lib/summernote-ext-nugget';
|
||||
import '@claviska/jquery-minicolors/jquery.minicolors.js';
|
@ -1,10 +0,0 @@
|
||||
import 'angular-i18n/angular-locale_<%= Rails.application.secrets.angular_locale %>.js';
|
||||
<% if Rails.application.secrets.moment_locale != 'en' %>
|
||||
import 'moment/locale/<%= Rails.application.secrets.moment_locale %>.js';
|
||||
<% end %>
|
||||
<% if Rails.application.secrets.summernote_locale != 'en-US' %>
|
||||
// import 'summernote/lang/summernote-<%#= Rails.application.secrets.summernote_locale %>.js';
|
||||
<% end %>
|
||||
<% if Rails.application.secrets.fullcalendar_locale != 'en' %>
|
||||
import 'fullcalendar/dist/locale/<%= Rails.application.secrets.fullcalendar_locale %>.js';
|
||||
<% end %>
|
@ -122,6 +122,5 @@
|
||||
</div>
|
||||
|
||||
<%= javascript_packs_with_chunks_tag 'application' %>
|
||||
<%= javascript_packs_with_chunks_tag 'locale' %>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
x
Reference in New Issue
Block a user