Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Mistype in url | symfony/lokalise-translation-provider  #42234

Closed
@gbruzgis

Description

@gbruzgis

Symfony version(s) affected: 5.3

Description
Wrong slug in lokalise provider url

How to reproduce
php bin/console translation:pull --force --locales= --domains=

Possible Solution

 $client = $this->client->withOptions([
            'base_uri' => 'https://'.$endpoint.'/projects/'.$this->getUser($dsn).'/api2/',
            'headers' => [
                'X-Api-Token' => $this->getPassword($dsn),
            ],
        ]);

replace with

$client = $this->client->withOptions([
            'base_uri' => 'https://'.$endpoint.'/api2/projects/'.$this->getUser($dsn),
            'headers' => [
                'X-Api-Token' => $this->getPassword($dsn),
            ],
        ]);

in file LokaliseProviderFactory.php

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions