/**
* Updates the locale strings when a translated active configuration is saved.
*
* @param \Drupal\Core\Config\ConfigCrudEvent $event
* The configuration event.
*/
public function onConfigSave(ConfigCrudEvent
$event) { // Only attempt to feed back configuration translation changes to locale if
// the update itself was not initiated by locale data changes.
if (!InstallerKernel::
installationAttempted() && !
$this->localeConfigManager->
isUpdatingTranslationsFromLocale()) { $config =
$event->
getConfig();
$langcode =
$config->
get('langcode'
) ?: 'en';
$this->
updateLocaleStorage($config,
$langcode);
} } /**
* Updates the locale strings when a configuration override is saved/deleted.
*
* @param \Drupal\language\Config\LanguageConfigOverrideCrudEvent $event
* The language configuration event.
*/