Skip to main content
fixed order
Source Link
macbert
  • 414
  • 2
  • 16

If you need to import custom translations too make sure to run a drush cim afterwards importing as some of the lables are translated in config and some in the po files.

At moment our update job looks like this after a git pull. And make sure if you are on dev to export your changes before pulling with drush cex ;-) :

composer install --no-interaction -d /var/www/html/ drush crupdatedb -y drush cimcr -y drush updatedbcim -y   drush locale:check -y #make sure to switch this to local only in settings.php in production drush locale:update -y drush locale:import de ../translations/custom-translations.de.po --type=customized --override=all -y drush locale:import de ../translations/custom_other_translations.de.po --type=customized --override=all -y drush cr -y drush cim -y drush cr -y 

If you need to import custom translations too make sure to run a drush cim afterwards importing as some of the lables are translated in config and some in the po files.

At moment our update job looks like this after a git pull. And make sure if you are on dev to export your changes before pulling with drush cex ;-) :

composer install --no-interaction -d /var/www/html/ drush cr -y drush cim -y drush updatedb -y drush locale:check -y #make sure to switch this to local only in settings.php in production drush locale:update -y drush locale:import de ../translations/custom-translations.de.po --type=customized --override=all -y drush locale:import de ../translations/custom_other_translations.de.po --type=customized --override=all -y drush cr -y drush cim -y drush cr -y 

If you need to import custom translations too make sure to run a drush cim afterwards importing as some of the lables are translated in config and some in the po files.

At moment our update job looks like this after a git pull. And make sure if you are on dev to export your changes before pulling with drush cex ;-) :

composer install --no-interaction -d /var/www/html/ drush updatedb -y drush cr -y drush cim -y   drush locale:check -y #make sure to switch this to local only in settings.php in production drush locale:update -y drush locale:import de ../translations/custom-translations.de.po --type=customized --override=all -y drush locale:import de ../translations/custom_other_translations.de.po --type=customized --override=all -y drush cr -y drush cim -y drush cr -y 
Source Link
macbert
  • 414
  • 2
  • 16

If you need to import custom translations too make sure to run a drush cim afterwards importing as some of the lables are translated in config and some in the po files.

At moment our update job looks like this after a git pull. And make sure if you are on dev to export your changes before pulling with drush cex ;-) :

composer install --no-interaction -d /var/www/html/ drush cr -y drush cim -y drush updatedb -y drush locale:check -y #make sure to switch this to local only in settings.php in production drush locale:update -y drush locale:import de ../translations/custom-translations.de.po --type=customized --override=all -y drush locale:import de ../translations/custom_other_translations.de.po --type=customized --override=all -y drush cr -y drush cim -y drush cr -y