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
  • Thank you, leymannx! I'll try the patch. – Viktor Nov 4 '18 at 15:00

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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