bootstrap-datepicker-railsで特定の言語のファイルのみを読み込む

applicetion.jsにこう書くと、

//= require bootstrap-datepicker/

こんな風に60言語分くらいの全てのファイルを読み込んで重い。

f:id:ugu44:20151015125459p:plain

 

 こんな風にcoreと必要な言語のファイルを指定すると読み込むファイルを絞り込むことができる。

//= require bootstrap-datepicker/core
//= require bootstrap-datepicker/locales/bootstrap-datepicker.ja.js