function _locale_rebuild_js
Same name and namespace in other branches
- 10 core/modules/locale/locale.module \_locale_rebuild_js()
- 11.x core/modules/locale/locale.module \_locale_rebuild_js()
- 9 core/modules/locale/locale.module \_locale_rebuild_js()
- 8.9.x core/modules/locale/locale.module \_locale_rebuild_js()
- 7.x includes/locale.inc \_locale_rebuild_js()
Creates or recreates the JavaScript translation file for a language.
Parameters
string|null $langcode: (optional) The language that the translation file should be (re)created for, or NULL for the current language. Defaults to NULL.
Return value
bool TRUE if translation file exists, FALSE otherwise.
Deprecated
in drupal:11.5.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleJs::class)->rebuild() instead.
See also
https://www.drupal.org/node/3619103
File
-
core/
modules/ locale/ locale.module, line 732
Code
function _locale_rebuild_js($langcode = NULL) {
@trigger_error(__FUNCTION__ . '() is deprecated in drupal:11.5.0 and is removed from drupal:13.0.0. Use \\Drupal::service(LocaleJs::class)->rebuild() instead. See https://www.drupal.org/node/3619103', E_USER_DEPRECATED);
return \Drupal::service(LocaleJs::class)->rebuild($langcode);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.