Skip to content

Commit

Permalink
For testing, a call to generate i18n locale files
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonYCHuang committed Feb 28, 2017
1 parent 94e176e commit a10e4db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/react_on_rails/test_helper/ensure_assets_compiled.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ def call
# Be sure we don't do this again.
self.class.has_been_run = true

ReactOnRails::LocalesToJs.new if ReactOnRails.configuration.i18n_dir.present?

stale_gen_files = webpack_assets_status_checker.stale_generated_webpack_files

# All done if no stale files!
Expand Down
2 changes: 1 addition & 1 deletion spec/dummy/config/initializers/react_on_rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def self.custom_context(view_context)
# I18N OPTIONS
################################################################################
# Replace the following line to the location where you keep translation.js & default.js.
config.i18n_dir = Rails.root.join("client", "app", "libs", "i18n")
# config.i18n_dir = Rails.root.join("client", "app", "libs", "i18n")

################################################################################
# MISCELLANEOUS OPTIONS
Expand Down

0 comments on commit a10e4db

Please sign in to comment.