feat(translate): sync oneshot request with DeepL iOS client

Replace the Chrome extension fingerprint with the iOS app profile from
DeepL 26.42 (build 5443737): iOS TLS, app_information, usage_type,
x-app-* headers, and FR-CA/DE-CH language codes.
This commit is contained in:
Vincent Young
2026-08-04 20:20:14 +08:00
parent dcdb0f2b6d
commit d44660c9d0
2 changed files with 121 additions and 119 deletions
+3 -3
View File
@@ -2,7 +2,7 @@
* @Author: Vincent Young
* @Date: 2024-09-16 11:59:24
* @LastEditors: Vincent Yang
* @LastEditTime: 2026-05-22 00:00:00
* @LastEditTime: 2026-08-04 00:00:00
* @FilePath: /DLX/translate/types.go
* @Telegram: https://t.me/missuo
* @GitHub: https://github.com/missuo
@@ -14,8 +14,8 @@ package translate
// DLXTranslationResult is the public response shape consumed by the HTTP
// handlers in the service package. The structure predates the migration to
// the oneshot endpoint; Alternatives is now always empty because oneshot does
// not return alternative translations, and ID is synthesized from time.
// the iOS oneshot endpoint; Alternatives is now always empty because oneshot
// does not return alternative translations, and ID is synthesized from time.
type DLXTranslationResult struct {
Code int `json:"code"`
ID int64 `json:"id"`