├── .editorconfig ├── README.md ├── composer.json ├── config └── translate.php └── src ├── Commands ├── AllCommand.php └── MissingCommand.php ├── Exceptions └── LanguageCodeNotExist.php ├── Facades └── TranslateFacade.php ├── Gateways ├── Abstracts │ └── AbstractResponseModel.php ├── BaiDuGateway │ └── BaiDuGateway.php ├── DeeplClient │ ├── DeeplClient.php │ ├── DeeplClientInterface.php │ ├── Exception │ │ └── RequestException.php │ ├── Handler │ │ ├── DeeplRequestFactory.php │ │ ├── DeeplRequestFactoryInterface.php │ │ ├── DeeplRequestHandlerInterface.php │ │ ├── DeeplTranslationRequestHandler.php │ │ └── DeeplUsageRequestHandler.php │ └── Model │ │ ├── AbstractResponseModel.php │ │ ├── ResponseModelInterface.php │ │ ├── Translation.php │ │ ├── TranslationConfig.php │ │ ├── TranslationConfigInterface.php │ │ ├── TranslationInterface.php │ │ ├── Usage.php │ │ └── UsageInterface.php ├── Exceptions │ └── RequestException.php ├── Finals │ ├── RequestFactory.php │ ├── Translation.php │ ├── TranslationConfig.php │ ├── TranslationRequestHandler.php │ ├── Usage.php │ └── UsageRequestHandler.php ├── Interfaces │ ├── GatewayInterface.php │ ├── RequestFactoryInterface.php │ ├── RequestHandlerInterface.php │ ├── ResponseModelInterface.php │ ├── TranslationConfigInterface.php │ ├── TranslationInterface.php │ └── UsageInterface.php ├── Tokens │ ├── BaiDuTokenGenerator.php │ ├── GoogleTokenGenerator.php │ ├── SampleTokenGenerator.php │ └── TokenProviderInterface.php └── YouDaoGateway │ └── YouDaoGateway.php ├── Translate.php ├── TranslateServiceProvider.php └── Translators ├── BaiDuTranslator.php ├── DeeplTranslator.php ├── SimpleGoogleTranslator.php ├── TranslatorInterface.php └── YouDaoTranslator.php /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hongyukeji/laravel-translate/HEAD/.editorconfig -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hongyukeji/laravel-translate/HEAD/README.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hongyukeji/laravel-translate/HEAD/composer.json -------------------------------------------------------------------------------- /config/translate.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hongyukeji/laravel-translate/HEAD/config/translate.php -------------------------------------------------------------------------------- /src/Commands/AllCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hongyukeji/laravel-translate/HEAD/src/Commands/AllCommand.php -------------------------------------------------------------------------------- /src/Commands/MissingCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hongyukeji/laravel-translate/HEAD/src/Commands/MissingCommand.php -------------------------------------------------------------------------------- /src/Exceptions/LanguageCodeNotExist.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hongyukeji/laravel-translate/HEAD/src/Exceptions/LanguageCodeNotExist.php -------------------------------------------------------------------------------- /src/Facades/TranslateFacade.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hongyukeji/laravel-translate/HEAD/src/Facades/TranslateFacade.php -------------------------------------------------------------------------------- /src/Gateways/Abstracts/AbstractResponseModel.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hongyukeji/laravel-translate/HEAD/src/Gateways/Abstracts/AbstractResponseModel.php -------------------------------------------------------------------------------- /src/Gateways/BaiDuGateway/BaiDuGateway.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hongyukeji/laravel-translate/HEAD/src/Gateways/BaiDuGateway/BaiDuGateway.php -------------------------------------------------------------------------------- /src/Gateways/DeeplClient/DeeplClient.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hongyukeji/laravel-translate/HEAD/src/Gateways/DeeplClient/DeeplClient.php -------------------------------------------------------------------------------- /src/Gateways/DeeplClient/DeeplClientInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hongyukeji/laravel-translate/HEAD/src/Gateways/DeeplClient/DeeplClientInterface.php -------------------------------------------------------------------------------- /src/Gateways/DeeplClient/Exception/RequestException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hongyukeji/laravel-translate/HEAD/src/Gateways/DeeplClient/Exception/RequestException.php -------------------------------------------------------------------------------- /src/Gateways/DeeplClient/Handler/DeeplRequestFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hongyukeji/laravel-translate/HEAD/src/Gateways/DeeplClient/Handler/DeeplRequestFactory.php -------------------------------------------------------------------------------- /src/Gateways/DeeplClient/Handler/DeeplRequestFactoryInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hongyukeji/laravel-translate/HEAD/src/Gateways/DeeplClient/Handler/DeeplRequestFactoryInterface.php -------------------------------------------------------------------------------- /src/Gateways/DeeplClient/Handler/DeeplRequestHandlerInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hongyukeji/laravel-translate/HEAD/src/Gateways/DeeplClient/Handler/DeeplRequestHandlerInterface.php -------------------------------------------------------------------------------- /src/Gateways/DeeplClient/Handler/DeeplTranslationRequestHandler.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hongyukeji/laravel-translate/HEAD/src/Gateways/DeeplClient/Handler/DeeplTranslationRequestHandler.php -------------------------------------------------------------------------------- /src/Gateways/DeeplClient/Handler/DeeplUsageRequestHandler.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hongyukeji/laravel-translate/HEAD/src/Gateways/DeeplClient/Handler/DeeplUsageRequestHandler.php -------------------------------------------------------------------------------- /src/Gateways/DeeplClient/Model/AbstractResponseModel.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hongyukeji/laravel-translate/HEAD/src/Gateways/DeeplClient/Model/AbstractResponseModel.php -------------------------------------------------------------------------------- /src/Gateways/DeeplClient/Model/ResponseModelInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hongyukeji/laravel-translate/HEAD/src/Gateways/DeeplClient/Model/ResponseModelInterface.php -------------------------------------------------------------------------------- /src/Gateways/DeeplClient/Model/Translation.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hongyukeji/laravel-translate/HEAD/src/Gateways/DeeplClient/Model/Translation.php -------------------------------------------------------------------------------- /src/Gateways/DeeplClient/Model/TranslationConfig.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hongyukeji/laravel-translate/HEAD/src/Gateways/DeeplClient/Model/TranslationConfig.php -------------------------------------------------------------------------------- /src/Gateways/DeeplClient/Model/TranslationConfigInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hongyukeji/laravel-translate/HEAD/src/Gateways/DeeplClient/Model/TranslationConfigInterface.php -------------------------------------------------------------------------------- /src/Gateways/DeeplClient/Model/TranslationInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hongyukeji/laravel-translate/HEAD/src/Gateways/DeeplClient/Model/TranslationInterface.php -------------------------------------------------------------------------------- /src/Gateways/DeeplClient/Model/Usage.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hongyukeji/laravel-translate/HEAD/src/Gateways/DeeplClient/Model/Usage.php -------------------------------------------------------------------------------- /src/Gateways/DeeplClient/Model/UsageInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hongyukeji/laravel-translate/HEAD/src/Gateways/DeeplClient/Model/UsageInterface.php -------------------------------------------------------------------------------- /src/Gateways/Exceptions/RequestException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hongyukeji/laravel-translate/HEAD/src/Gateways/Exceptions/RequestException.php -------------------------------------------------------------------------------- /src/Gateways/Finals/RequestFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hongyukeji/laravel-translate/HEAD/src/Gateways/Finals/RequestFactory.php -------------------------------------------------------------------------------- /src/Gateways/Finals/Translation.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hongyukeji/laravel-translate/HEAD/src/Gateways/Finals/Translation.php -------------------------------------------------------------------------------- /src/Gateways/Finals/TranslationConfig.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hongyukeji/laravel-translate/HEAD/src/Gateways/Finals/TranslationConfig.php -------------------------------------------------------------------------------- /src/Gateways/Finals/TranslationRequestHandler.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hongyukeji/laravel-translate/HEAD/src/Gateways/Finals/TranslationRequestHandler.php -------------------------------------------------------------------------------- /src/Gateways/Finals/Usage.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hongyukeji/laravel-translate/HEAD/src/Gateways/Finals/Usage.php -------------------------------------------------------------------------------- /src/Gateways/Finals/UsageRequestHandler.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hongyukeji/laravel-translate/HEAD/src/Gateways/Finals/UsageRequestHandler.php -------------------------------------------------------------------------------- /src/Gateways/Interfaces/GatewayInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hongyukeji/laravel-translate/HEAD/src/Gateways/Interfaces/GatewayInterface.php -------------------------------------------------------------------------------- /src/Gateways/Interfaces/RequestFactoryInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hongyukeji/laravel-translate/HEAD/src/Gateways/Interfaces/RequestFactoryInterface.php -------------------------------------------------------------------------------- /src/Gateways/Interfaces/RequestHandlerInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hongyukeji/laravel-translate/HEAD/src/Gateways/Interfaces/RequestHandlerInterface.php -------------------------------------------------------------------------------- /src/Gateways/Interfaces/ResponseModelInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hongyukeji/laravel-translate/HEAD/src/Gateways/Interfaces/ResponseModelInterface.php -------------------------------------------------------------------------------- /src/Gateways/Interfaces/TranslationConfigInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hongyukeji/laravel-translate/HEAD/src/Gateways/Interfaces/TranslationConfigInterface.php -------------------------------------------------------------------------------- /src/Gateways/Interfaces/TranslationInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hongyukeji/laravel-translate/HEAD/src/Gateways/Interfaces/TranslationInterface.php -------------------------------------------------------------------------------- /src/Gateways/Interfaces/UsageInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hongyukeji/laravel-translate/HEAD/src/Gateways/Interfaces/UsageInterface.php -------------------------------------------------------------------------------- /src/Gateways/Tokens/BaiDuTokenGenerator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hongyukeji/laravel-translate/HEAD/src/Gateways/Tokens/BaiDuTokenGenerator.php -------------------------------------------------------------------------------- /src/Gateways/Tokens/GoogleTokenGenerator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hongyukeji/laravel-translate/HEAD/src/Gateways/Tokens/GoogleTokenGenerator.php -------------------------------------------------------------------------------- /src/Gateways/Tokens/SampleTokenGenerator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hongyukeji/laravel-translate/HEAD/src/Gateways/Tokens/SampleTokenGenerator.php -------------------------------------------------------------------------------- /src/Gateways/Tokens/TokenProviderInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hongyukeji/laravel-translate/HEAD/src/Gateways/Tokens/TokenProviderInterface.php -------------------------------------------------------------------------------- /src/Gateways/YouDaoGateway/YouDaoGateway.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hongyukeji/laravel-translate/HEAD/src/Gateways/YouDaoGateway/YouDaoGateway.php -------------------------------------------------------------------------------- /src/Translate.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hongyukeji/laravel-translate/HEAD/src/Translate.php -------------------------------------------------------------------------------- /src/TranslateServiceProvider.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hongyukeji/laravel-translate/HEAD/src/TranslateServiceProvider.php -------------------------------------------------------------------------------- /src/Translators/BaiDuTranslator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hongyukeji/laravel-translate/HEAD/src/Translators/BaiDuTranslator.php -------------------------------------------------------------------------------- /src/Translators/DeeplTranslator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hongyukeji/laravel-translate/HEAD/src/Translators/DeeplTranslator.php -------------------------------------------------------------------------------- /src/Translators/SimpleGoogleTranslator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hongyukeji/laravel-translate/HEAD/src/Translators/SimpleGoogleTranslator.php -------------------------------------------------------------------------------- /src/Translators/TranslatorInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hongyukeji/laravel-translate/HEAD/src/Translators/TranslatorInterface.php -------------------------------------------------------------------------------- /src/Translators/YouDaoTranslator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hongyukeji/laravel-translate/HEAD/src/Translators/YouDaoTranslator.php --------------------------------------------------------------------------------