Skip to content
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

Prevent translations to be discarded #324

Merged
merged 1 commit into from
Jul 5, 2023
Merged

Conversation

shaffe-fr
Copy link
Contributor

@shaffe-fr shaffe-fr commented Jul 4, 2023

  • Added or updated tests
  • Added or updated the README.md
  • Detailed changes in the CHANGELOG.md unreleased section

Related Issue
When the boot method is loaded before third-party translation paths, the __() function calls to trigger the preload of all available translations in the global domain (JSON translation files). As a result, any json path registered later is ignored, leading to the discarding of all their translations.

Changes
Ensure that the ValidationFactory is fully initialized before creating an instance, guaranteeing that the boot process is complete.

@spawnia
Copy link
Collaborator

spawnia commented Jul 5, 2023

Nice solution to #321, thank you.

@spawnia spawnia merged commit 48f4418 into BenSampo:master Jul 5, 2023
8 checks passed
@shaffe-fr shaffe-fr deleted the patch-2 branch July 5, 2023 08:09
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