全部文档
一、登录或注册百度账号
https://login.bce.baidu.com/

二、申请百度机器翻译接口
1、产品搜索机器翻译


2、根据实际需求进行实名认证

3、创建应用,查看应用详情获取AppID,API Key和Secret Key



三、把获取到的AppID,API Key和Secret Key反馈给技术人员
或是自行配置,参考网站根目录下【config/site.php.example】,新建【config/site.php】文件,复制其中的机器翻译配置
// 多语言-复制-AI翻译
‘baidu_aiTranslation_appid’ => ‘这里填写appid’,
‘baidu_aiTranslation_appkey’ => ‘这里填写appkey’,
‘baidu_aiTranslation_secretkey’ => ‘这里填写secrekey’,
具体参考官方文档为准:https://cloud.baidu.com/doc/MT/index.html
点击反馈