lib/tasks/locale.rake in react_on_rails-6.7.1 vs lib/tasks/locale.rake in react_on_rails-6.7.2
- old
+ new
@@ -5,10 +5,8 @@
Generate i18n javascript files
This task generates javascript locale files: `translations.js` & `default.js` and places them in
the "ReactOnRails.configuration.i18n_dir".
DESC
task locale: :environment do
- if ReactOnRails.configuration.i18n_dir.present?
- ReactOnRails::LocalesToJs.new
- end
+ ReactOnRails::LocalesToJs.new
end
end