For one language site the command is:

drush config:set system.site name "Drupal 8 English sitename"

But how to be, if the site is multilanguage, at example two languages? Example:

  • English site name: "Drupal 8 English sitename"
  • Italian site name: "Drupal 8 Italian sitename"

At example for site settings in web interface I can translate it in tab "Translate system information" http://take.ms/i9jUN. But how to set translated config value with drush? It is possible?


For getting the site name in Spanish for example it's

drush config:get language.es:system.site name

Unfortunately the following doesn't work and I wonder if this is a bug or what's missing.

drush -y config:set language.es:system.site name "Hello World"

This just gives me

Invalid character in Config object name language.es:system.site.

Will update answer later.

Created an issue on drupal.org: drush config:set for other than default collections raises exception. Where I also provided a patch you may use if you are really in need right now.

  • I have the same error: "Invalid character..." – Viktor Nov 4 '18 at 11:54
  • @Viktor – Answer updated. I created an issue and provided a patch on drupal.org. Use it with caution. :) – leymannx Nov 4 '18 at 13:02
  • 1
    drush -y config:set language.es.system.site name "Hello World" also works – Sboniso Marcus Nzimande May 27 '20 at 16:34
  • @SbonisoMarcusNzimande – Unfortunately I can't confirm that. All I get is Config language.es.system.site does not exist. Which version of Drupal and Drush were you using? – leymannx May 27 '20 at 18:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.