• 嗨!《MineBBS 2022年度总结》新鲜出炉啦!快来看看我们今年做得怎么样吧~【点我去看】
  • 高速简洁的Minecraft下载页来啦!快来体验一下吧~【点我传送】
TranslateAPI 翻译API GameCore扩展模块

Plugins TranslateAPI 翻译API GameCore扩展模块 0.0.2

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配置文件介绍
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>
Author
lt_name
Downloads
70
Views
303
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from lt_name

Share this resource

Latest updates

  1. 0.0.2

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