You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 28, 2023. It is now read-only.
Percy Mamedy edited this page Feb 1, 2016
·
1 revision
It may occur that you do not want to use the default translator implementation but instead would like to override the functions available or even add more functions to the translator.
You may do so by changing the default translator implementation in the config/watson-translate.php file.
/* |-------------------------------------------------------------------------- | Translator Implementation |-------------------------------------------------------------------------- | | By default the interface is implemented by FindBrok\WatsonTranslate\Translator | Change this value to your own implementation if you wish to override the | implementation of the Translator interface | */'translator_implementation' => 'FindBrok\WatsonTranslate\Translator',
Be sure to specify the full namespace for your class implementation for the translator interface, furthermore your class should implement all methods from FindBrok\WatsonTranslate\Contracts\TranslatorInterface