allow reusing previously compiled JS translations
refs DE-1336 Change-Id: I98e1e61e8a2f4796a2c76b8725c964ff4616987f Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/300907 Reviewed-by: Andrea Cirulli <andrea.cirulli@instructure.com> QA-Review: Aaron Ogata <aogata@instructure.com> Product-Review: Aaron Ogata <aogata@instructure.com> Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
This commit is contained in:
parent
df7905976a
commit
27eea9334c
|
@ -89,7 +89,9 @@ namespace :i18n do
|
|||
# in-memory when we run the "check" task and combine that directly with the
|
||||
# translations extracted from JS, which are stored on disk
|
||||
desc "Extract translations from source code into a YAML file"
|
||||
task extract: [:check_rb, :extract_js] do
|
||||
task extract: [:check_rb] do
|
||||
Rake::Task["i18n:extract_js"].invoke unless ENV["I18N_JS_PRECOMPILED"] == "1"
|
||||
|
||||
combined_translations = I18nTasks::Extract.new(
|
||||
rb_translations: @check.translations,
|
||||
js_translations: JSON.parse(File.read(js_translations_file))["en"].flatten_keys
|
||||
|
|
Loading…
Reference in New Issue