@@ -339,6 +339,7 @@ namespace :magento do
339
339
with mage_mode : :production do
340
340
_magento_version = magento_version
341
341
342
+ deploy_languages = fetch ( :magento_deploy_languages ) . join ( ' ' )
342
343
deploy_themes = fetch ( :magento_deploy_themes )
343
344
deploy_jobs = fetch ( :magento_deploy_jobs )
344
345
@@ -354,14 +355,6 @@ namespace :magento do
354
355
deploy_jobs = nil
355
356
end
356
357
357
- # Workaround core-bug with multi-lingual deployments on Magento 2.1.3 and greater. In these versions each
358
- # language must be iterated individually. See issue #72 for details.
359
- if _magento_version >= Gem ::Version . new ( '2.1.3' )
360
- deploy_languages = fetch ( :magento_deploy_languages )
361
- else
362
- deploy_languages = [ fetch ( :magento_deploy_languages ) . join ( ' ' ) ]
363
- end
364
-
365
358
# Magento 2.2 introduced static content compilation strategies that can be one of the following:
366
359
# quick (default), standard (like previous versions) or compact
367
360
compilation_strategy = fetch ( :magento_deploy_strategy )
@@ -375,10 +368,7 @@ namespace :magento do
375
368
# Magento 2.1 will fail to deploy if this file does not exist and static asset signing is enabled
376
369
execute :touch , "#{ release_path } /pub/static/deployed_version.txt"
377
370
378
- # This loop exists to support deploy on versions where each language must be deployed seperately
379
- deploy_languages . each do |lang |
380
- static_content_deploy "#{ compilation_strategy } #{ deploy_jobs } #{ lang } #{ deploy_themes } "
381
- end
371
+ static_content_deploy "#{ compilation_strategy } #{ deploy_jobs } #{ deploy_languages } #{ deploy_themes } "
382
372
end
383
373
384
374
# Set the deployed_version of static content to ensure it matches across all hosts
0 commit comments