locale_configurable_language_update

locale_configurable_language_update(ConfigurableLanguageInterface $language)

Implements hook_ENTITY_TYPE_update() for 'configurable_language'.

File

core/modules/locale/locale.module, line 212
Enables the translation of the user interface to languages other than English.

Code

1
2
3
4
5
6
7
8
function locale_configurable_language_update(ConfigurableLanguageInterface $language) {
  // @todo move these two cache clears out. See
  // Changing the language settings impacts the interface: clear render cache.
  \Drupal::cache('render')->deleteAll();
  // Force JavaScript translation file re-creation for the modified language.
  _locale_invalidate_js($language->id());
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.