glosbe
Version, currently 0.1.02 versions
- 0.2.0latestJun 18, 2016
- 0.1.0not indexedJun 27, 2016
github.com/greyblake/crystal-glosbe
Crystal Client for Glosbe API
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:
glosbe:
github: greyblake/crystal-glosbe
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.
Glosbe 
Crystal client for Glosbe API
Installation
Add this to your application's shard.yml:
dependencies:
glosbe:
github: greyblake/crystal-glosbe
Usage
require "glosbe"
client = Glosbe::Client.new
# Translate a word from German to English
response = client.translate("de", "en", "Achtung", tm: true) # => #<Glosbe::TranslateResponse ... >
# Print translations
response.tuc.each do |translation|
puts translation.phrase.try(&.text)
end
# Print examples of usage
response.examples.each do |example|
puts example.first # sentence in German
puts example.second # translation in English
end
Please check Glosbe::Client and Glosbe API for more details.
Errors
Client methods may raise the following errors:
- Glosbe::Error
- Glosbe::HttpError
- Glosbe::ParseError
Running tests
crystal spec
Contributors
- 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
- Jun 27, 2016
- Commit
60acb15db015- Indexed
- not yet
Dependents
No indexed shard depends on this one yet.
Repository
github.com/greyblake/crystal-glosbe
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 14, 2026
- Synced
- Aug 14, 2026
- Versions
- 2