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

Skip to content

[Translation][Loco] Consider handling the special status "blank translation" #44595

Closed
@kgonella

Description

@kgonella

Description

Currently, the adapter only handles the status "translated" when pulling translations. In loco, there is a special status "blank translation" which allows to say that this key is translated but empty. This status is useful because you cannot save an empty key with the status "translated". The export API allows you to combine the statuses if you separate them with "," like in the example

Example

The method read of LocoProvider will look like this :

$response = $this->client->request('GET', sprintf('export/locale/%s.xlf', rawurlencode($locale)), [
    'query' => [
        'filter' => $domain,
        'status' => 'translated, blank-translation',
    ],
]);

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