Minor Changes
-
#48
f9c6651Thanks @maxchang3! - feat!: migrate to oneshot API, refactor language mapping, and drop formal support- Breaking: Removed
formalparameter from thetranslatefunction and--formalfrom CLI. - Breaking: Migrated the backend to DeepL's undocumented
oneshotAPI to mitigate aggressive 429/403 blocking on the legacy/jsonrpcendpoint. - Feature: Added support for configuring a DeepL Pro
dlSessioncookie and aproxyUrlacross the core API, CLI, and Vercel endpoints. - Feature: Refactored language code resolution to natively support regional variants (e.g.,
ZH-HANT) via statically defined maps while retaining backward compatibility for loose inputs.
- Breaking: Removed