TranslateAPI 翻译API GameCore扩展模块

插件 TranslateAPI 翻译API GameCore扩展模块 0.0.2

完成注册/登录后下载
版权类型
原创
API版本
1.0.11
版权链接
https://github.com/MemoriesOfTime/TranslateAPI
语言支持
多语言
前置组件
MemoriesOfTime-GameCore https://www.minebbs.com/resources/memoriesoftime-gamecore.2619/
TranslateAPI

插件交流群:907894436

什么是TranslateAPI?
TranslateAPI是一个GameCore插件的扩展模块,主要功能是为其他插件提供翻译接口

如何安装TranslateAPI?
1.请先确保您的服务器已安装GameCore插件,且正常加载GameCore并生成配置目录
2.下载此模块,将文件放到plugins\MemoriesOfTime-GameCore\modules文件夹内
3.开启服务器,在服务器启动完成后关闭服务器,进入plugins\MemoriesOfTime-GameCore\modules\TranslateAPI修改config.yml配置文件

config.yml配置文件介绍
YAML:
# 翻译接口选择
# Translation interface selection
# google / aliyun / baidu / youdao
provider: google

# Http代理地址
# 用于解决无法访问部分翻译接口的问题
# Http proxy address
# Used to solve the problem of not being able to access part of the translation interface
proxy:
  enable: false
  host: "127.0.0.1"
  port: 1080

# 阿里云翻译账号配置 不使用阿里云接口请忽略
# Aliyun translation account configuration Please ignore if you don't use Aliyun interface
# https://usercenter.console.aliyun.com/#/manage/ak
aliyun:
  accessKeyId: "1234"
  accessKeySecret: "1234"

# 百度翻译账号配置 不使用百度翻译接口请忽略
# Baidu translation account configuration Please ignore if you don't use Baidu translation interface
# https://fanyi-api.baidu.com/
baidu:
  appId: "1234"
  secretKey: "1234"

对于开发者:
使用maven来导入依赖
代码:
<repositories>
    <repository>
        <id>repo-lanink-cn</id>
        <url>https://repo.lanink.cn/</url>
    </repository>
</repositories>

<dependencies>
    <dependency>
        <groupId>cn.lanink</groupId>
        <artifactId>MemoriesOfTime-GameCore</artifactId>
        <version>1.6.4</version>
        <scope>provided</scope>
    </dependency>

    <dependency>
        <groupId>cn.lanink.gamecore</groupId>
        <artifactId>TranslateAPI</artifactId>
        <version>0.0.2</version>
        <scope>provided</scope>
    </dependency>
</dependencies>
作者
lt_name
下载
583
查看
1,013
首次发布
最后更新

评分

0.00 星 0 次评分

lt_name 的其他资源

最新更新

  1. 0.0.2

    修复百度翻译/阿里翻译语种代码问题 优化代理功能 添加有道翻译支持(但是不推荐使用)
后退
顶部 底部