-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit 803cc09837acc734ccdafc7e4b1d4adc553a7355 Author: Marco Bonetti <[email protected]> Date: Mon Oct 7 11:59:30 2024 +0200 Changelog commit 4808f4abc5c6830b609c9e1bafc4ba5daf67a19c Author: Marco Bonetti <[email protected]> Date: Mon Oct 7 11:56:55 2024 +0200 fix flake8 commit 38781c1 Author: Halit Celik <[email protected]> Date: Mon Oct 7 11:53:52 2024 +0200 remove venv commit 46d4fdf Merge: b32840d 1a341ad Author: Halit Celik <[email protected]> Date: Mon Oct 7 10:53:43 2024 +0200 merge remote and fix conflict commit b32840d Author: Halit Celik <[email protected]> Date: Mon Oct 7 10:41:56 2024 +0200 rename function and fix tests commit 2dbc232 Author: Halit Celik <[email protected]> Date: Mon Sep 30 13:26:05 2024 +0200 send variable type as html attribute commit 7e1c1cf Author: Halit Celik <[email protected]> Date: Mon Jun 10 15:07:57 2024 +0200 remove content encodig gzip from vcr cassettes commit 872f081 Merge: 3cc0680 62422e4 Author: Halit Celik <[email protected]> Date: Mon Jun 10 14:46:21 2024 +0200 sync fork commit 3cc0680 Author: Halit Celik <[email protected]> Date: Mon Jun 10 14:39:37 2024 +0200 Wraps and unwraps django variables in xml tags for deepl not to translate them
- Loading branch information
Showing
6 changed files
with
123 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
testproject/fixtures/vcr_cassettes/test_47_2_deeps_ajax_translation.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
testproject/fixtures/vcr_cassettes/test_deepl_ajax_translation_with_variables.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
interactions: | ||
- request: | ||
body: tag_handling=xml&ignore_tags=var&target_lang=EN&text=Ci+sono+%3Cvar+type%3D%22d%22%3Eitems%3C%2Fvar%3E+%3Cvar+type%3D%22s%22%3Ename%3C%2Fvar%3E+disponibili. | ||
headers: | ||
Accept: | ||
- '*/*' | ||
Accept-Encoding: | ||
- gzip, deflate | ||
Authorization: | ||
- DeepL-Auth-Key FAKE | ||
Connection: | ||
- keep-alive | ||
Content-Length: | ||
- '156' | ||
Content-Type: | ||
- application/x-www-form-urlencoded | ||
User-Agent: | ||
- python-requests/2.32.3 | ||
method: POST | ||
uri: https://api-free.deepl.com/v2/translate | ||
response: | ||
body: | ||
string: '{"translations": [{"detected_source_language": "IT", "text": "There are <var type=\"d\">items</var> <var type=\"s\">name</var> available."}]}' | ||
headers: | ||
access-control-allow-origin: | ||
- '*' | ||
access-control-expose-headers: | ||
- Server-Timing, X-Trace-ID | ||
content-type: | ||
- application/json | ||
date: | ||
- Mon, 07 Oct 2024 07:54:03 GMT | ||
server-timing: | ||
- l7_lb_tls;dur=77, l7_lb_idle;dur=2, l7_lb_receive;dur=1, l7_lb_total;dur=124 | ||
strict-transport-security: | ||
- max-age=63072000; includeSubDomains; preload | ||
transfer-encoding: | ||
- chunked | ||
vary: | ||
- Accept-Encoding | ||
x-trace-id: | ||
- 0ec04e3eef784472bedc5be15a1f8259 | ||
status: | ||
code: 200 | ||
message: OK | ||
version: 1 |