- Refactor translate API with JSON parser
- Add derive of
hash
forLang
- Add
ZH-HANS
andZH-HANT
- Bump dependencies:
- thiserror:
1.0.35
->1.0.63
- reqwest:
0.12.4
->0.12.7
- serde:
1.0.144
->1.0.208
- tokio:
1.21.1
->1.39.3
- tokio-stream:
0.1.11
->0.1.15
- paste:
1.0.11
->1.0.15
- typed-builder:
0.18
->0.19
- thiserror:
- Add FromStr and Display trait implementation for Lang
- Add support for AR (Arabic)
- Support automatically switch API backend
- Wrap panic into Result
- Fix incorrect implmentation of glossary API
- Add
context
field into translate API - make all field in glossary API as public
- Add type constraint for glossary APIs
- Implement all the glossaries related API
- Re-export the
LangConvertError
struct
- Add new
languages
endpoint - Add
KO
andNB
language variant
- Improve code document
- Include formality in impl_requester
- Add
Clone
derive forLang
- (BREAKING) Implement auto send for all endpoint
- (BREAKING)
DeepLApi
implementation is now separated to multiple endpoint file - (BREAKING)
DeepLApiResponse
is now renamed toTranslateTextResp
- (BREAKING)
DeepLApi
is now init by::with()
function and build by.new()
function - Using
docx-rs
to parse document content for testing
- (BREAKING)
Lang::from
is now replaced withLang::try_from
- Full API options for endpoint
translate
- New builder for DeepLApi
- Complete some missing document
- Correct all the typo
reqwest
crate is re-exported- (BREAKING)
translate
function only acceptTranslateTextProp
now
- Fix document download issue
- Use
AsRef<Path>
asUploadDocumentProp::file_path
type - Use only
output
parameter for functiondownload_document
- New upload document API
- More language variants implemented
- Allow user using Pro version API
- New API
get_usage()
to get current API usage
- Replace Anyhow::Result with custom Error