This repository has been archived by the owner on Mar 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split external assets rake task into two (#657)
* Split external assets rake task into two * make CI import liquid templates from ext-assets for smoke tests * attempt to fix bizarre yaml parse error * make test.yml use two space indentation like normal yml * prioritize champaign translations over asset trans in test env
- Loading branch information
Showing
8 changed files
with
121 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# include the locale files from external asset directories, if relevant | ||
if Settings.external_asset_paths.present? && Settings.external_translation_path.present? | ||
Settings.external_asset_paths.try(:split, ":").each do |directory| | ||
Rails.application.config.i18n.load_path += Dir[File.join(directory, Settings.external_translation_path, '*.{rb,yml}')] | ||
end | ||
# in the test environement, we want the translations from the Champaign repo to override those in | ||
# the asset repo because some of the integration specs involve VCR casettes including language | ||
# from the Champaign translations | ||
if Rails.env.test? | ||
champaign_locales = Dir[Rails.root.join('config', 'locales', '*.{rb,yml}')] | ||
Rails.application.config.i18n.load_path += champaign_locales | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters