In "Creating your own translation providers", "translation providers" might mean "translation loaders" #163
Eric-ZheranLi
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It is said, "A translation provider can be any class that implements the Spatie\TranslationLoader\TranslationLoaders\TranslationLoader-interface. It contains only one method:".
I think here might mean "A translation loader" can be any class that implements the interface, like DB:class in laravel-translation-loader\TranslationLoaders\Db.php. Then we can register this loader in config file of laravel-translation-loader\config\translation-loader.php to make the existing provider use the new loader.
Beta Was this translation helpful? Give feedback.
All reactions