google_translate
Version, currently 0.1.03 versions
- 0.2.1latestJun 27, 2016
- 0.2.0not indexedFeb 8, 2018
- 0.1.0not indexedFeb 8, 2018
github.com/greyblake/crystal-google_translate
Google Translate client for Crystal
14 stars
0 dependents
License: MIT
Nothing has been indexed for 0.1.0 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.
Installation
# Add this to your shard.yml
dependencies:
google_translate:
github: greyblake/crystal-google_translate
version: ~> 0.1.0Then run:
shards installshard.yml
No shard.yml has been indexed for 0.1.0. You can read it on the repository.
Dependencies
Unknown: the shard.yml for this version has not been read yet.
README
This README is the one indexed from the repository at its latest ref, not from the tag for this version.
# Crystal GoogleTranslate [](https://travis-ci.org/greyblake/crystal-google_translate)
Crystal client for GoogleTranslate
## Installation
Add this to your application's `shard.yml`:
```yaml
dependencies:
google_translate:
github: greyblake/crystal-google_translate
```
## Usage
```crystal
require "google_translate"
```
### Example
The following code translates german word `tanzen` with a typo(double n) and prints the result:
```crystal
client = GoogleTranslate::Client.new
tr = client.translate("de", "en", "tanzenn")
puts "#{tr.source_lang} -> #{tr.target_lang}"
puts "Query: #{tr.query}"
puts "Corrected query: #{tr.corrected_query}"
puts "Text: #{tr.text}"
tr.variants.each do |word_class, words|
puts word_class
words.each do |word|
puts " #{word}"
end
end
```
Output:
```
de -> en
Query: tanzenn
Corrected query: tanzen
Text: dance
verb
dance
hop
spin
bob
foot
```
## Development
To run specs:
```
crystal spec
```
## Contributors
- [greyblake](https://github.com/greyblake) Sergey Potapov - creator, maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.1.0- Tagged
- Feb 8, 2018
- Commit
d56718d66186- Indexed
- not yet
Dependents
No indexed shard depends on this one yet.
Repository
github.com/greyblake/crystal-google_translate
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 13, 2026
- Synced
- Aug 13, 2026
- Versions
- 3