Mstranslator
mstranslator is a client to access Microsoft Translator marketplace API which written by Golang
Install / Use
/learn @kkdai/MstranslatorREADME
mstranslator
The "mstranslator" is a Micrsoft Translator Service client which written by Golang.
What is Microsoft Translator

Microsoft Translator is a cloud based automatic translation service. (Refer here for more detail).
Here is another site for Microsoft Translator API.
Installation
go get github.com/kkdai/mstranslator
How to use it
Sign-up for Microsoft Translator API (see here for more detail) and get your developer credentials. Use the client ID and secret to instantiate a translator as shown below.
package main
import (
"fmt"
"log"
ms "github.com/kkdai/mstranslator"
)
func main() {
msClient := ms.NewClient("YourClientID", "YourClientSecret")
//Translate "Hello World" from English to France.
translation, err := msClient.Translate("Hello World!", "en", "de")
if err != nil {
log.Panicf("Error : %s", err.Error())
}
fmt.Println(translation) //Hallo Welt!
}
Check example for more detail.
Example on mstranslator

Implemented APIs
- Detect
- DetectArray
- GetLanguageNames
- GetLanguagesForTranslate
- GetLanguagesForSpeak
- GetTranslations
- Translate
- TransformText
- Speak
Unimplement APIs (Yet)
Contribute
Please open up an issue on GitHub before you put a lot efforts on pull request.
The code submitting to PR must be filtered with gofmt
Inspired
This project is inspired by https://github.com/st3v/translator.
Project52
It is one of my project 52.
License
This package is licensed under MIT license. See LICENSE for details.
Related Skills
node-connect
343.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
92.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
343.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
343.3kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。

