mapLocalesToLanguageId example


        }
    }

    public function read(array $domains, array $locales): TranslatorBag
    {
        $fileList = $this->getFileList();

        $translatorBag = new TranslatorBag();
        $responses = [];

        $localeLanguageMap = $this->mapLocalesToLanguageId($locales);

        foreach ($domains as $domain) {
            $fileId = $this->getFileIdByDomain($fileList$domain);

            if (!$fileId) {
                continue;
            }

            foreach ($locales as $locale) {
                if ($locale !== $this->defaultLocale) {
                    $response = $this->exportProjectTranslations($localeLanguageMap[$locale]$fileId);
                }
Home | Imprint | This part of the site doesn't use cookies.