You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the handover is complete and we consider the fork "ready for release" (and
10
-
the gem has been updated to point to our fork), we'll add the Ruby library to
11
-
our API documentation: https://www.deepl.com/docs-api/api-access/client-libraries/
3
+
# DeepL Ruby Library
12
4
13
-
---
5
+
The [DeepL API](https://developers.deepl.com/docs/api-reference/translate) is a language translation API that allows other computer programs to send texts and documents to DeepL's servers and receive high-quality translations. This opens a whole universe of opportunities for developers: any translation product you can imagine can now be built on top of DeepL's best-in-class translation technology.
The DeepL Ruby library offers a convenient way for applications written in Ruby to interact with the DeepL API. We intend to support all API functions with the library, though support for new features may be added to the library after they’re added to the API.
16
8
17
-
#DeepL for ruby
9
+
## Getting an authentication key
18
10
19
-
A simple ruby wrapper for the [DeepL translation API (v2)](https://www.deepl.com/api.html).
11
+
To use the DeepL Ruby Library, you'll need an API authentication key. To get a key, [please create an account here](https://www.deepl.com/pro?utm_source=github&utm_medium=github-ruby-readme#developer). With a DeepL API Free account you can translate up to 500,000 characters/month for free.
20
12
21
13
## Installation
22
14
@@ -411,7 +403,7 @@ bundle exec rake test
411
403
### Caution: Changing VCR Tests
412
404
413
405
If you need to rerecord some of the VCR tests, simply setting `record: :new_episodes` and rerunning `rspec` won't be enough in some cases, specifically around document translation (due to its statefulness) and glossaries (since a glossary ID is associated with a specific API account).
414
-
For example, there are document translations tests that split up the `upload`, `get_status` and `download` calls into separate test cases. You need to first rerecord the `upload` call, you can do execute a single test like this:
406
+
For example, there are document translations tests that split up the `upload`, `get_status` and `download` calls into separate test cases. You need to first rerecord the `upload` call, you can do execute a single test like this (the line should be where the `it` block of the test starts):
s.description="A simple ruby wrapper for the DeepL translation API (v1). For more information, check this: https://www.deepl.com/docs/api-reference.html".freeze
16
-
s.email="info@danielherzog.es".freeze
13
+
s.authors=["DeepL SE".freeze]
14
+
s.date="2024-09-20"
15
+
s.description="Official Ruby library for the DeepL language translation API (v2). For more information, check this: https://www.deepl.com/docs/api-reference.html".freeze
0 commit comments