Skip to content

Conversation

@Dukecz
Copy link
Contributor

@Dukecz Dukecz commented Aug 18, 2025

No description provided.

@Dukecz
Copy link
Contributor Author

Dukecz commented Aug 18, 2025

This should also fix #440

Copy link
Collaborator

@bartmcleod bartmcleod left a comment

Choose a reason for hiding this comment

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

Thank you for your PR! It looks good to me, just one small modification would make it great, thanks!

$this->output->writeln(sprintf('<info># %s:</info>', $bundle->getName()));
$finder = $this->findTranslationsFiles($path, $locales, $domains);
$this->importTranslationFiles($finder);
} else {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you maybe replace the else with an early return in the body of the preceding if?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@bartmcleod
Copy link
Collaborator

@Dukecz Thanks again for your PR. I ran the tests and they fail on some validation of the translation directory. Can you also fix the test please? When the tests pass, it is good to merge. Please also check my comment on the code changes, thanks!

@Dukecz
Copy link
Contributor Author

Dukecz commented Aug 19, 2025

@Dukecz Thanks again for your PR. I ran the tests and they fail on some validation of the translation directory. Can you also fix the test please? When the tests pass, it is good to merge. Please also check my comment on the code changes, thanks!

Hopefully fixed here 97b7896

@Dukecz Dukecz requested a review from bartmcleod August 19, 2025 13:03
Copy link
Collaborator

@bartmcleod bartmcleod left a comment

Choose a reason for hiding this comment

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

The changes look good, I'm trying to make the build actions pass, no luck so far, @Dukecz probably easy to fix though, can you run them on your local, or do you need help with that?

@Dukecz
Copy link
Contributor Author

Dukecz commented Aug 20, 2025

@bartmcleod tests should finally be fixed

@Dukecz Dukecz requested a review from bartmcleod August 20, 2025 16:56
@bartmcleod bartmcleod merged commit 8e3ad7e into lexik:master Aug 20, 2025
3 checks passed
@bartmcleod
Copy link
Collaborator

@Dukecz Merged! Thank you for your contribution 🥇

@Dukecz Dukecz deleted the fix-bundle-translations branch August 20, 2025 18:46
Dukecz added a commit to ThreeSixtyEu/LexikTranslationBundle that referenced this pull request Dec 11, 2025
…ns are in /translations directory (lexik#486)

* fixes loading translations from bundles when translations are in /translations

* early return codestyle fix

* updated tests

* updated tests
Dukecz added a commit to ThreeSixtyEu/LexikTranslationBundle that referenced this pull request Dec 11, 2025
…ns are in /translations directory (lexik#486)

* fixes loading translations from bundles when translations are in /translations

* early return codestyle fix

* updated tests

* updated tests
Dukecz added a commit to ThreeSixtyEu/LexikTranslationBundle that referenced this pull request Dec 11, 2025
…ns are in /translations directory (lexik#486)

* fixes loading translations from bundles when translations are in /translations

* early return codestyle fix

* updated tests

* updated tests
Dukecz added a commit to ThreeSixtyEu/LexikTranslationBundle that referenced this pull request Dec 11, 2025
…ns are in /translations directory (lexik#486)

* fixes loading translations from bundles when translations are in /translations

* early return codestyle fix

* updated tests

* updated tests
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.

2 participants