code: private function addGlobal(array $chunks, $value): void
      {
          if (false === $this->addToGlobals) {
              return;
          }
  
          $data = &$GLOBALS['TL_LANG'];
  
          foreach ($chunks as $key) {
              if (null === $data || !\is_array($data)) {
                  $data = [];
              }
  
              $data = &$data[$key];
          }
  
          $data = $value;
      }
docs: Adds the labels to the global PHP language array.