You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We currently use component discovery to load all our translation configurations.
Our project is split into config and domains (translations/config/domain.language.xliff , for example :
translations/CalendarBundle/bo.en.xliff
translations/CalendarBundle/messages.en.xliff
translations/CalendarBundle/messages.fr.xliff
translations/ContactBundle/messages.en.xliff
We use the following Regex in the discovery module: translations/(?P<component>[^/]*)/[a-z]+\.(?P<language>[^/.]*)\.xliff
Weblate proposes all our bundles and displays several components with the same name because we have several domains per configuration:
Once the components are synchronized, the interface displays several components per bundle, since there are several domains per component, which for us is not a problem.
What is problematic is that weblate does not download all the components, we have to restart the component discovery several times to have all the domains...
No error appears in the logs.
Do you have any idea what's going on?
Should we avoid using component discovery in our use case?
Is it possible to create and import a file with the configuration of all our components separated by domain so that weblate creates all the components without using discovery and without the need to manually create the components?
This issue looks more like a support question than an issue. We strive to answer these reasonably fast, but purchasing the support subscription is not only more responsible and faster for your business but also makes Weblate stronger.
In case your question is already answered, making a donation is the right way to say thank you!
I think it groups matches by component part, so in your case the non captured part will be chosen randomly. Better to use something like translations/(?P<component>[^/]*/[a-z]+)\.(?P<language>[^/.]*)\.xliff to include the name in the component name as well.
Alternatively, you can use an additional capture group and name the component differently, see #6270 for example (this will work with 4.7.2 which was just released).
We currently use component discovery to load all our translation configurations.
Our project is split into config and domains (translations/config/domain.language.xliff , for example :
We use the following Regex in the discovery module:
translations/(?P<component>[^/]*)/[a-z]+\.(?P<language>[^/.]*)\.xliff
Weblate proposes all our bundles and displays several components with the same name because we have several domains per configuration:
Once the components are synchronized, the interface displays several components per bundle, since there are several domains per component, which for us is not a problem.
What is problematic is that weblate does not download all the components, we have to restart the component discovery several times to have all the domains...
No error appears in the logs.
Do you have any idea what's going on?
Should we avoid using component discovery in our use case?
Is it possible to create and import a file with the configuration of all our components separated by domain so that weblate creates all the components without using discovery and without the need to manually create the components?
Weblate 4.7.1 using docker on linux
logs-weblate.txt
The text was updated successfully, but these errors were encountered: