private function getSystemLanguageLocale(Context
$context): string
{ $criteria =
new Criteria();
$criteria->
addAssociation('translationCode'
);
$criteria->
addFilter(new EqualsFilter('id', Defaults::LANGUAGE_SYSTEM
));
/** @var LanguageEntity $language */
$language =
$this->languageRepository->
search($criteria,
$context)->
first();
/** @var LocaleEntity $locale */
$locale =
$language->
getTranslationCode();
return $locale->
getCode();
} /**
* @param array<string, mixed> $translations
*
* @return array<string, array<string, mixed>>
*/
private function mapTranslations(array
$translations, string
$property, string
$systemLanguageLocale): array
{