glosbe
Version, currently 0.2.02 versions
- 0.2.0latestJun 18, 2016
- 0.1.0not indexedJun 27, 2016
github.com/greyblake/crystal-glosbe
Crystal Client for Glosbe API
3 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
glosbe:
github: greyblake/crystal-glosbe
version: ~> 0.2.0Then run:
shards installshard.yml
- Crystal
- no constraint declared
- License
- MIT
- Author
- Sergey Potapov
Dependencies
Runtime Dependencies
- cossack~> 0.1.0github: greyblake/crystal-cossack
Development Dependencies
- spec2*github: greyblake/spec2.cr, branch: crystal-0-18-0dev
README
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.2.0- Tagged
- Jun 18, 2016
- Commit
af6bab9c8d87- Indexed
- yes
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