-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[FrameworkBundle][Translations] Fix translation commands #24590
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,7 @@ | |
</service> | ||
|
||
<service id="translation.loader.yml" class="Symfony\Component\Translation\Loader\YamlFileLoader" public="true"> | ||
<tag name="translation.loader" alias="yml" /> | ||
<tag name="translation.loader" alias="yaml" legacy-alias="yml" /> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hmm, is that another bugfix? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes. It allow to find |
||
</service> | ||
|
||
<service id="translation.loader.xliff" class="Symfony\Component\Translation\Loader\XliffFileLoader" public="true"> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is one problem here. These paths are used to generate
views
andtranslations
folders paths (see L275 & L295). With Flex,views
is renamed bytemplates
, so translations could be extracted but translation keys used in templates won't be extracted.#24807 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I propose you a simple solution in PR.