Your IP : 3.144.12.160


Current Path : /var/www/axolotl/data/www/yar.axolotls.ru/bitrix/modules/location/
Upload File :
Current File : /var/www/axolotl/data/www/yar.axolotls.ru/bitrix/modules/location/default_option.php

<?php

$location_default_option = [
	'address_format_code' => getDefaultAddressFormatCode(),
	'google_map_api_key' => \Bitrix\Main\Config\Option::get('fileman', 'google_map_api_key', '')
];

// copy & paste from \Bitrix\Location\Infrastructure\FormatCode::getDefault()
function getDefaultAddressFormatCode(string $languageId = LANGUAGE_ID): string
{
	switch ($languageId)
	{
		case 'kz':
			$result = 'RU_2';
			break;

		case 'de':
			$result = 'EU';
			break;

		case 'en':
			$result = 'US';
			break;

		//case 'ru':
		//case 'by':
		//case 'ua':
		default:
			$result = 'RU';
	}

	return $result;
}