_locale_rebuild_js($langcode = NULL)
(Re-)Creates the JavaScript translation file for a language.
Parameters
$langcode: The language, the translation file should be (re)created for.
Return value
bool TRUE if translation file exists, FALSE otherwise.
File
core/modules/locale/locale.module, line 1265 Enables the translation of the user interface to languages other than English.
Code
function _locale_rebuild_js($langcode = NULL) {
$config = \Drupal::config('locale.settings');
if (!isset($l