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

Refactor CustomTranslationsLoader for Compatibility with Statamic #679

Merged
merged 1 commit into from
Jun 5, 2023

Conversation

okaufmann
Copy link
Contributor

This PR addresses a compatibility issue with Statamic. The CustomTranslationsLoader class was previously using FileLoader, which led to conflicts as Statamic also mutates the loader.

To resolve this, we've refactored CustomTranslationsLoader to use LoaderContract instead of FileLoader. This change enhances flexibility and ensures compatibility with Statamic and potentially other packages that mutate the loader.

Key Changes:

  • defaultLoader property type is now LoaderContract.
  • Constructor now accepts LoaderContract instead of FileLoader.

This change is crucial for ensuring our package's seamless integration with Statamic. Please review and provide feedback.

@shalvah shalvah merged commit 4f9fa4b into knuckleswtf:master Jun 5, 2023
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