Skip to content

A library containing google translate API and a simple menu bar app

License

Notifications You must be signed in to change notification settings

otomn/GoogleTranslateTab

Repository files navigation

GoogleTranslateTab

The project has three parts

Part 1 Google Translate API for swift

All APIs are defined in GoogleTranslateApi.swift and managed by GoogleTranslate

Only the basic APIs are supported (translate, detect language, and get all supported languages)

A google translate API key is required to use the this library, which can be requested for free on https://cloud.google.com/translate/

Sample code is provided in ConsoleTest/main.swift

Part 2 A menu tab app for Google Translate

The project is written with SwiftUI

A google translate API key is required to use the this application, which can be requested for free on https://cloud.google.com/translate/

Open Info.plist and paste the API key next to GoogleApiKey

Part 3 A console application

The project is written with Swift using the ArgumentParser to parse the arguments

Sample usage (assuming the output is named gtrans): echo hello world | gtrans -k <key> --to fr "input from argument as well" See gtrans -h for help

About

A library containing google translate API and a simple menu bar app

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages