format fix
This commit is contained in:
parent
862312239b
commit
118ddb9101
1 changed files with 2 additions and 2 deletions
|
@ -666,12 +666,12 @@ $locales = Config::getParam('locale-codes', []);
|
|||
|
||||
foreach ($locales as $locale) {
|
||||
$code = $locale['code'];
|
||||
|
||||
|
||||
$path = __DIR__ . '/config/locale/translations/' . $code . '.json';
|
||||
|
||||
if (!\file_exists($path)) {
|
||||
$path = __DIR__ . '/config/locale/translations/' . \substr($code, 0, 2) . '.json'; // if `ar-ae` doesn't exist, look for `ar`
|
||||
if(!\file_exists($path)) {
|
||||
if (!\file_exists($path)) {
|
||||
$path = __DIR__ . '/config/locale/translations/en.json'; // if none translation exists, use default from `en.json`
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue