Skip to content

v0.2.0

Compare
Choose a tag to compare
@Avimitin Avimitin released this 08 Jan 07:20
· 102 commits to master since this release
8e0c142

v0.2.0 breaks the DeepLApi::translate method. It only accept TranslateTextProp argument now. Please read the v0.2.0 document for the new changes.

v0.1 => v0.2 migration guide

// replacing this
api.translate("Hello World", None, Lang::ZH)

// with this
let props = TranslateTextProp::builder().target_lang(Lang::ZH).build();
api.translate("Hello World", &props);

Changelogs

  • Implement all DeepL options for the text translation endpoint (#11 by @seijikun)
  • Correct all the typo (*Reponse -> *Response)
  • Add builder for DeepLApi
  • Re-export the reqwest crate
  • [BREAK] merge the translate function and translate_advanced function introduced in #11
  • Update document