- Source of resources
- Original
- Copyright link
- https://github.com/MemoriesOfTime/TranslateAPI
- Precondition
- MemoriesOfTime-GameCore https://www.minebbs.com/resources/memoriesoftime-gamecore.2619/
- API
- 1.0.11
- Language
- Multi-language
TranslateAPI
插件交流群:907894436
什么是TranslateAPI?
TranslateAPI是一个GameCore插件的扩展模块,主要功能是为其他插件提供翻译接口
如何安装TranslateAPI?
1.请先确保您的服务器已安装GameCore插件,且正常加载GameCore并生成配置目录
2.下载此模块,将文件放到plugins\MemoriesOfTime-GameCore\modules文件夹内
3.开启服务器,在服务器启动完成后关闭服务器,进入plugins\MemoriesOfTime-GameCore\modules\TranslateAPI修改config.yml配置文件
config.yml配置文件介绍
对于开发者:
使用maven来导入依赖
插件交流群: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来导入依赖
Code:
<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>