Skip to content

[Translation] With Loco, when pushing multiple domains, only assets from first domain are submitted #43954

@vlad-ghita

Description

@vlad-ghita

Symfony version(s) affected

5.3.6

Description

Given:

  • empty Loco project
  • multple domains

When pushing multiple domains, only assets from first domain are submitted (eg: forms):

php bin\console translation:push loco --domains forms --domains messages --domains validators --force -vvv
12:49:22 INFO      [http_client] Request: "POST https://localise.biz/api/assets"
12:49:22 INFO      [http_client] Request: "POST https://localise.biz/api/assets"
12:49:22 INFO      [http_client] Request: "POST https://localise.biz/api/assets"
12:49:22 INFO      [http_client] Request: "POST https://localise.biz/api/assets"
12:49:23 INFO      [http_client] Response: "201 https://localise.biz/api/assets"
12:49:23 INFO      [http_client] Response: "201 https://localise.biz/api/assets"
12:49:23 INFO      [http_client] Response: "201 https://localise.biz/api/assets"
12:49:23 INFO      [http_client] Response: "201 https://localise.biz/api/assets"
12:49:23 INFO      [http_client] Request: "GET https://localise.biz/api/tags.json"
12:49:23 INFO      [http_client] Response: "200 https://localise.biz/api/tags.json"
12:49:23 INFO      [http_client] Request: "POST https://localise.biz/api/tags/forms.json"
12:49:24 INFO      [http_client] Response: "200 https://localise.biz/api/tags/forms.json"
12:49:24 INFO      [http_client] Request: "GET https://localise.biz/api/locales"
12:49:24 INFO      [http_client] Response: "200 https://localise.biz/api/locales"
12:49:24 INFO      [http_client] Request: "GET https://localise.biz/api/assets?filter=forms"
12:49:24 INFO      [http_client] Response: "200 https://localise.biz/api/assets?filter=forms"
12:49:24 INFO      [http_client] Request: "POST https://localise.biz/api/translations/button-create-account/en"
12:49:24 INFO      [http_client] Request: "POST https://localise.biz/api/translations/label-email/en"
12:49:24 INFO      [http_client] Request: "POST https://localise.biz/api/translations/label-terms/en"
12:49:24 INFO      [http_client] Request: "POST https://localise.biz/api/translations/label-password/en"
12:49:24 INFO      [http_client] Response: "200 https://localise.biz/api/translations/button-create-account/en"
12:49:25 INFO      [http_client] Response: "200 https://localise.biz/api/translations/label-email/en"
12:49:25 INFO      [http_client] Response: "200 https://localise.biz/api/translations/label-terms/en"
12:49:25 INFO      [http_client] Response: "200 https://localise.biz/api/translations/label-password/en"
12:49:25 INFO      [http_client] Request: "GET https://localise.biz/api/locales"
12:49:25 INFO      [http_client] Response: "200 https://localise.biz/api/locales"

 [OK] All local translations has been sent to "loco" (for "en, ro" locale(s), and "forms, messages, validators"        
      domain(s)).                                                                                                      


Process finished with exit code 0

How to reproduce

See description.

Possible Solution

Fix incorrect usage of original catalogue.
Proposed solution.

Additional Context

No response

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