Skip to content

IBX-12091: Moved JavaScript and TypeScript translation extractors - #3

Merged
mikadamczyk merged 7 commits into
6.0from
IBX-12091-move-translation-extractors
Aug 6, 2026
Merged

mikadamczyk merged 7 commits into
6.0from
IBX-12091-move-translation-extractors

Conversation

@mikadamczyk

@mikadamczyk mikadamczyk commented Aug 4, 2026

Copy link
Copy Markdown
Contributor
🎫 Issue IBX-12091

Related PRs:

Description:

Moved the generic JavaScript and TypeScript translation extractors from Admin UI to the Translations package. The bundle now registers both file visitors with JMSTranslationBundle and provides the PHP and Node dependencies required to run them.

This allows packages to extract frontend translations without registering the complete Admin UI bundle. Integration coverage verifies that the compiled JMS file extractor processes JavaScript and TypeScript fixtures through IbexaTranslationsBundle.

For QA:

No manual QA is required. The change is covered by unit and integration tests.

Documentation:

No documentation changes are required.

@mikadamczyk mikadamczyk self-assigned this Aug 4, 2026
@mikadamczyk
mikadamczyk marked this pull request as ready for review August 4, 2026 12:42
@mikadamczyk
mikadamczyk requested a review from a team August 4, 2026 12:43
@ibexa-workflow-automation-1
ibexa-workflow-automation-1 Bot requested review from Steveb-p, ViniTou, alongosz, barw4, bnowak, ciastektk, konradoboza, tbialcz and wiewiurdp and removed request for a team August 4, 2026 12:43
Comment thread src/bundle/Resources/config/services/translation.yaml Outdated
Comment thread src/lib/Extractor/JavaScriptFileVisitor.php
Comment thread tests/integration/bootstrap.php Outdated
Comment thread tests/lib/Extractor/TypeScriptFileVisitorTest.php Outdated
Comment thread tests/lib/Extractor/TypeScriptFileVisitorTest.php Outdated
Comment thread composer.json
Comment thread composer.json Outdated
Comment thread composer.json
"require": {
"php": ">=8.3",
"ext-json": "*",
"doctrine/annotations": "^2.0",

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same reason as Peast. It's used at runtime by the JavaScript extractor. JavaScriptFileVisitor builds a Doctrine\Common\Annotations\DocParser in its constructor and uses it to read @Desc annotations out of the leading comments of a Translator.trans() call, so extraction picks up message descriptions. @Desc is JMSTranslationBundle's own annotation, but the parser that reads it has to be required explicitly

@mikadamczyk
mikadamczyk requested a review from alongosz August 4, 2026 14:02
@mikadamczyk
mikadamczyk merged commit 30a4b0e into 6.0 Aug 6, 2026
12 checks passed
@mikadamczyk
mikadamczyk deleted the IBX-12091-move-translation-extractors branch August 6, 2026 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants