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.
This PR addresses a compatibility issue with Statamic. The
CustomTranslationsLoader
class was previously usingFileLoader
, which led to conflicts as Statamic also mutates the loader.To resolve this, we've refactored
CustomTranslationsLoader
to useLoaderContract
instead ofFileLoader
. This change enhances flexibility and ensures compatibility with Statamic and potentially other packages that mutate the loader.Key Changes:
defaultLoader
property type is nowLoaderContract
.LoaderContract
instead ofFileLoader
.This change is crucial for ensuring our package's seamless integration with Statamic. Please review and provide feedback.