Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
magento2-base
dev
tests
functional
utils
locales.php
Go to the documentation of this file.
1
<?php
7
if
(isset($_GET[
'type'
]) && $_GET[
'type'
] ==
'deployed'
) {
8
$themePath = isset($_GET[
'theme_path'
]) ? $_GET[
'theme_path'
] :
'adminhtml/Magento/backend'
;
9
$directory =
__DIR__
.
'/../../../../pub/static/'
. $themePath;
10
$locales
= array_diff(scandir($directory), [
'..'
,
'.'
]);
11
}
else
{
12
require_once
__DIR__
. DIRECTORY_SEPARATOR .
'bootstrap.php'
;
13
$localeConfig
=
$magentoObjectManager
->create(\
Magento
\Framework\Locale\Config::class);
14
$locales
=
$localeConfig
->getAllowedLocales();
15
}
16
17
echo implode(
'|'
,
$locales
);
__DIR__
defined('TESTS_BP')||define('TESTS_BP' __DIR__
Definition:
_bootstrap.php:60
$locales
$locales
Definition:
locales.php:14
Magento
$localeConfig
$localeConfig
Definition:
locales.php:13
$magentoObjectManager
$magentoObjectManager
Definition:
moduleSequence.php:12