diff --git a/composer.json b/composer.json index d5f595c..c98001c 100644 --- a/composer.json +++ b/composer.json @@ -1,26 +1,26 @@ { - "name": "yiier/yii2-translate", - "description": "腾讯君翻译,腾讯 AI 翻译", - "type": "yii2-extension", - "keywords": [ - "yii2", - "extension", - "translate" - ], - "license": "BSD-4-Clause", - "authors": [ - { - "name": "forecho", - "email": "caizhenghai@gmail.com" + "name": "yiier/yii2-translate", + "description": "腾讯翻译君翻译、百度翻译 、谷歌翻译(Google 翻译)", + "type": "yii2-extension", + "keywords": [ + "yii2", + "extension", + "translate" + ], + "license": "BSD-4-Clause", + "authors": [ + { + "name": "forecho", + "email": "caizhenghai@gmail.com" + } + ], + "require": { + "yiisoft/yii2": "~2.0.0", + "guzzlehttp/guzzle": "^6.3" + }, + "autoload": { + "psr-4": { + "yiier\\translate\\": "src" + } } - ], - "require": { - "yiisoft/yii2": "~2.0.0", - "guzzlehttp/guzzle": "^6.3" - }, - "autoload": { - "psr-4": { - "yiier\\translate\\": "src" - } - } } diff --git a/src/Factory.php b/src/Factory.php index 3fcf788..e77b566 100644 --- a/src/Factory.php +++ b/src/Factory.php @@ -98,7 +98,7 @@ protected function formatPlatformClassName($name) protected function makePlatform($platform, $config) { if (!\class_exists($platform) || !\in_array(PlatformInterface::class, \class_implements($platform))) { - throw new InvalidArgumentException(\sprintf('Class "%s" is a invalid express platform.', $platform)); + throw new InvalidArgumentException(\sprintf('Class "%s" is a invalid translate platform.', $platform)); } return new $platform($config); }