• Модуль: landing
  • Путь к файлу: ~/bitrix/modules/landing/lib/assets/standartbuilder.php
  • Класс: BitrixLandingAssetsStandartBuilder
  • Вызов: StandartBuilder::normalizeLangResources
protected function normalizeLangResources(): void
{
	$langResources = $this->normalizedResources[Types::TYPE_LANG] ?? null;
	if (isset($langResources) && !empty($langResources))
	{
		// convert array to string (get first element)
		$this->normalizedResources[Types::TYPE_LANG] = $this->normalizedResources[Types::TYPE_LANG][0];

		// other files load by additional lang
		if ($additionalLang = self::loadAdditionalLangPhrases(array_slice($langResources, 1)))
		{
			$this->normalizedResources[Types::TYPE_LANG_ADDITIONAL] = $additionalLang;
		}
	}
}