From 3c7b6d0ecc1c4e70b8f696037c7ec53250f11782 Mon Sep 17 00:00:00 2001 From: ulferts Date: Wed, 26 Jul 2023 17:33:53 +0200 Subject: [PATCH] load the environment to have the crowdin path added to I18n.load_path --- lib/tasks/assets.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/assets.rake b/lib/tasks/assets.rake index 71b06122b1be..b7da60c72f30 100644 --- a/lib/tasks/assets.rake +++ b/lib/tasks/assets.rake @@ -78,7 +78,7 @@ namespace :assets do end desc 'Export frontend locale files' - task :export_locales do + task export_locales: :environment do puts "Exporting I18n.js locales" time = Benchmark.realtime do I18nJS.call(config_file: Rails.root.join('config/i18n.yml'))