Refreshes configuration after string translations have been updated.
The information that will be refreshed includes:
array $langcodes: Language codes for updated translations.
array $lids: List of string identifiers that have been updated / created.
function _locale_refresh_configuration(array $langcodes, array $lids) {
if ($lids && $langcodes && ($names = \Drupal\locale\Locale::config()
->getStringNames($lids))) {
Drupal::moduleHandler()
->loadInclude('locale', 'bulk.inc');
locale_config_update_multiple($names, $langcodes);
}
}