Repository navigation
See Upgrading to 2.0.0 for a guide to the breaking changes since 1.21.0.
Added
- Added a trailing options array with
MultilingualGlossaryOptions::EXTRA_BODY_PARAMETERSto
createMultilingualGlossary(),createMultilingualGlossaryFromCsv(),
updateMultilingualGlossary()andreplaceMultilingualGlossaryDictionary(). - Added a trailing options array to
createStyleRule()
(CreateStyleRuleOptions),updateStyleRuleName()
(UpdateStyleRuleNameOptions),updateStyleRuleConfiguredRules()
(UpdateStyleRuleConfiguredRulesOptions, as further keys of the configured
rules),createStyleRuleCustomInstruction()
(CreateStyleRuleCustomInstructionOptions) and
updateStyleRuleCustomInstruction()
(UpdateStyleRuleCustomInstructionOptions), each withEXTRA_BODY_PARAMETERS. getStyleRuleCustomInstruction(),updateStyleRuleCustomInstruction()and
deleteStyleRuleCustomInstruction()accept aCustomInstructionas well as
its ID.- Added
CreateTranslationMemoryImportOptions,ImportTranslationMemoryOptions
andWaitOptions.createTranslationMemoryImport()accepts a
CreateTranslationMemoryImportOptionsarray (CONTENT_TYPE,DISPLAY_NAME,
EXTRA_BODY_PARAMETERS) as its third argument; the positional form remains.
importTranslationMemoryFromFilepath()accepts an
ImportTranslationMemoryOptionsarray (CONTENT_TYPE,DISPLAY_NAME,
TIMEOUT,EXTRA_BODY_PARAMETERS) as its second; a string there is still the
display name.CONTENT_TYPEis used for both the import job and the upload.
waitUntilTranslationMemoryJobDone()andexportTranslationMemoryToFilepath()
accept[WaitOptions::TIMEOUT => seconds]in place of the timeout. - The
MultilingualGlossaryDictionaryEntriesconstructor accepts
GlossaryEntriesas well as an array.
Changed
- Breaking:
updateMultilingualGlossary($glossary, $name, $dictionaries)takes
($glossary, array $options = []). Replace
updateMultilingualGlossary($g, $name, $dicts)with
updateMultilingualGlossary($g, [MultilingualGlossaryOptions::NAME => $name, MultilingualGlossaryOptions::DICTIONARIES => $dicts]). - Breaking:
deleteMultilingualGlossaryDictionary()takes
($glossary, $sourceLang, $targetLang), or
($glossary, MultilingualGlossaryDictionaryInfo $dictionary). Replace
deleteMultilingualGlossaryDictionary($g, null, 'en', 'de')with
deleteMultilingualGlossaryDictionary($g, 'en', 'de'). - Breaking:
MultilingualGlossaryDictionaryEntries::$entriesis aGlossaryEntries
instead of an array. Replace$dictionary->entrieswith
$dictionary->entries->getEntries(). - Breaking:
RephraseTextOptionsno longer extendsTranslateTextOptions; it only
definesWRITING_STYLE,TONEandEXTRA_BODY_PARAMETERS, the options
rephraseText()reads. UseTranslateTextOptionsfor the translate option
constants. - Breaking:
Usage::anyLimitReached()is replaced byUsage::anyCharacterLimitReached():
true if the account's character limit (character) or this API key's
character limit (apiKeyCharacter) is reached. The speech minutes are not
checked. Replace$usage->anyLimitReached()with
$usage->anyCharacterLimitReached(). - Breaking: The
formalityandsplit_sentencesvalues are sent as given instead of
lower-cased; the API rejects upper-case values. Pass them in lower case, for
example with theFormalityandSentenceSplittingModeconstants. - Breaking: Subclasses of
DeepLClientthat overridecreateMultilingualGlossary(),
createMultilingualGlossaryFromCsv(),updateMultilingualGlossary(),
replaceMultilingualGlossaryDictionary(),
deleteMultilingualGlossaryDictionary(), the style rule methods above,
getStyleRuleCustomInstruction(),deleteStyleRuleCustomInstruction(), or
createTranslationMemoryImport(),importTranslationMemoryFromFilepath(),
waitUntilTranslationMemoryJobDone()and
exportTranslationMemoryToFilepath()must update their signatures. - Breaking: PHP 8.0 or later is required; support for PHP 7.3 and 7.4 is dropped.
Users on PHP 7 must upgrade PHP before updating, or stay on the 1.x
releases. composer.jsonrequirespsr/http-client-implementationand
psr/http-factory-implementation^1.0instead of*. Both PSR interfaces
only have a 1.x major, so every implementation that 1.21.0 accepted still
satisfies it.- Breaking: An HTTP 404 response on the v2 and v3 glossary endpoints throws
NotFoundExceptionwith the messageNot found, ...instead of
GlossaryNotFoundExceptionwithGlossary not found, .... So does
getMultilingualGlossaryDictionaryEntries()when the glossary has no
dictionary for the language pair. Code that catchesNotFoundExceptionor
DeepLExceptionis unaffected. - Breaking: The
split_sentencesvalues'on','default'and'off'are no longer
translated to'1'and'0'; they are sent as given, and the API rejects
'on'and'default'. UseSentenceSplittingMode::ALL('1') or
SentenceSplittingMode::OFF('0'). - Breaking:
DeepLClient::buildRephraseBodyParams()is private. It was an internal
request builder; callrephraseText(). GlossaryUtilsis marked@internaland is not part of the public API. Use
GlossaryEntries::fromTsv(),GlossaryEntries::fromEntries()and
GlossaryEntries::convertToTsv().- Breaking: The protected
DeepLClient::checkStatusCode()no longer has the third
parameter$usingGlossary. A third argument is ignored. Overrides no longer
receive$usingGlossary; the SDK calls it with two arguments.
Remove the third parameter from overrides. - Breaking:
ClientUtils::checkStatusCode()no longer has the third parameter
$usingGlossary. - Breaking:
StyleRuleInfo::$configuredRulesis theconfigured_rulesarray as the
API returns it (category => rule => value, snake_case keys) instead of a
ConfiguredRulesobject; categories the SDK did not know are no longer
dropped. Replace$info->configuredRules->datesAndTimeswith
$info->configuredRules['dates_and_times'], and likewise for the other
categories. TheStyleRuleInfoconstructor takes this array. - Breaking:
translateDocument(),translateDocumentUpload()and
importTranslationMemoryFromFilepath()throw\InvalidArgumentException
when no file exists at the input file path, before any request is sent.
PreviouslytranslateDocument()threwDocumentTranslationException,
importTranslationMemoryFromFilepath()threwDeepLException, and
translateDocumentUpload()did not check and failed in the transport. Catch
\InvalidArgumentExceptionfor a missing input file. - Breaking:
TranslationMemoryJob::done()andTranslationMemoryJobResult::done()return
true only for the statuscompleted, asDocumentStatus::done()does;
failedandexpiredjobs return [secure]. Code that useddone()to detect
any finished job must checkdone() || !ok(). - Breaking: every function that creates a resource is retried only when the
request was not processed, ascreateDeveloperKey()already was: after HTTP
429, or a failure while connecting, before any byte of the request was written
(a DNS failure of the host or proxy, a refused connection, a reset by the
proxy before it answered, a timeout while connecting, in the TLS handshake or
in the proxy tunnel). A 5xx response, a read timeout or a reset connection is
no longer retried, so the resource is not created twice. This applies to
translateDocumentUpload()(the upload oftranslateDocument()),
createGlossary(),createGlossaryFromCsv(),createMultilingualGlossary(),
createMultilingualGlossaryFromCsv(),createSpokenTerms(),
createStyleRule(),createStyleRuleCustomInstruction(),
createStyleProfile(),createTranslationMemoryImport()and
createTranslationMemoryExport(). With a custom HTTP client only HTTP 429 is
retried for them. Catch the exception and check whether the resource exists
before creating it again. - Breaking: a response body cut off mid-read (cURL errors 18 and 92, for
example a short body or an HTTP/2 stream reset) is retried like a reset
connection, except by the functions that create a resource. If no attempt
succeeds, theConnectionExceptionhasshouldRetryset totrueinstead
of[secure]. A download to a file rewrites the file from the start on each
attempt.
CheckshouldRetrybefore retrying such a failure yourself. - Breaking: when a function that creates a resource fails, the exception's
shouldRetryistrueonly if the request was not processed (HTTP 429, or a
failure while connecting, before the request was written) or the response body
was cut off mid-read. After a 5xx status, a timeout after the request was
written, an empty reply, a reset connection or a broken pipe it is[secure]
instead oftrue, as repeating the request may create a duplicate. This
applies to the functions listed above and tocreateDeveloperKey(), and to
theDocumentTranslationExceptionof a failedtranslateDocument()upload.
Check whether the resource exists before creating it again whenshouldRetryis[secure]. - Breaking: a failure on the way to a proxy is retried like one on a direct
connection, and an error answer from the proxy is not. A proxy whose name
cannot be resolved (CURLE_COULDNT_RESOLVE_PROXY) is now retried; 1.21.0 did
not retry it. A non-2xx answer toCONNECT, 407 included, is no longer
retried, and itsConnectionExceptionhasshouldRetry[secure].
createDeveloperKey()is now also retried after a timeout in the TLS
handshake or the proxy tunnel, and after a proxy that reset or closed the
connection before answering, because the request was not sent. Before, it
threw theConnectionExceptionat once, without retrying (for a timeout,
depending on the libcurl version). A reset or other socket failure
during the TLS handshake (CURLE_SSL_CONNECT_ERRORwith an OS error) is now
retried like other connection failures; a TLS error (alert, wrong version,
certificate) is still not retried.
Fix the proxy setting instead of retrying an error answer from the proxy. - Breaking: every argument check throws PHP's
\InvalidArgumentException
instead ofDeepLException, before any request is sent: an empty auth or
admin key, an invalidserver_urlor negativemax_retriesoption, an empty
language code, text, name, label, prompt or resource ID,glossarytogether
withglossary_ids, more than 5 glossary IDs, an invalid
translation_memory_threshold, an invalid glossary or spoken terms term,
empty glossary entries, acontentLengththat is not positive, an invalid
admin date, anEXTRA_BODY_PARAMETERSvalue of a document translation that
cannot be JSON-encoded, and an unknown option key.InvalidArgumentExceptionis not a
DeepLException: to keep handling these errors, also catch
\InvalidArgumentException. API, I/O and wait failures, and an export job
without a download URL passed todownloadTranslationMemoryExport(), still
throwDeepLException;
translateDocument()still wraps the argument errors of its upload in a
DocumentTranslationException. - Breaking:
translateText(),rephraseText()andcorrectText()throw an
\InvalidArgumentExceptionfor an empty text, alone or in the array, before
any request is sent.translateText()andrephraseText()sent it, and
correctText()only rejected a single empty string.
Remove empty texts before the call. - Breaking: The multilingual glossary functions that take a glossary
(getMultilingualGlossary(),updateMultilingualGlossary(),
updateMultilingualGlossaryName(), the dictionary update, replace, entries
and delete functions, anddeleteMultilingualGlossary()) and the spoken
terms functions that take a spoken terms collection (getSpokenTerms(),
updateSpokenTerms(),deleteSpokenTerms(),getSpokenTermsEntries(),
replaceSpokenTermsList(),deleteSpokenTermsList()) throw an
\InvalidArgumentExceptionfor an empty ID, or an object with an empty ID,
before any request is sent.MultilingualGlossaryInfo::getGlossaryId()and
SpokenTerms::getSpokenTermsId()throw it too.
Catch\InvalidArgumentExceptionfor these. - Breaking:
updateMultilingualGlossaryName()throws an\InvalidArgumentExceptionfor
an empty name,createMultilingualGlossary()for an empty dictionary list,
anddeleteMultilingualGlossaryDictionary()for an empty source or target
language, also from aMultilingualGlossaryDictionaryInfo, before any
request is sent.
Catch\InvalidArgumentExceptionfor these. - Breaking:
translateDocument()throws aDocumentTranslationExceptionwith
anullhandle before uploading if the output file's directory does not
exist or is not writable. Before, the document was uploaded and translated
and the download failed, with the handle set.
Create the output directory before the call. - Breaking:
translateDocumentUpload()throws aDeepLExceptionbefore any
request is sent if the input path is a directory or the file cannot be read.
Before, the built-in cURL transport sent the request and failed with a
ConnectionException.
CatchDeepLExceptionfor an unreadable input file. - Breaking:
translateText(),translateDocumentUpload(),
translateDocumentWaitUntilDone(),rephraseText(),correctText(),
getLanguagesForResource()(options array form) and
listTranslationMemorySegments()throw an\InvalidArgumentExceptionfor an
option key that is not a constant of their options class
(TranslateTextOptions,TranslateDocumentOptions,RephraseTextOptions,
CorrectTextOptions,GetLanguagesForResourceOptions,
TranslationMemorySegmentsOptions), before any request is sent; unknown
keys were ignored.translateDocument()wraps it in a
DocumentTranslationException. Pass extra request fields with
EXTRA_BODY_PARAMETERS. - Breaking: the
DeepLClientandDeepLAdminClientconstructors throw an
\InvalidArgumentExceptionfor aproxyoption that cURL cannot use: a
value that is not a string, an empty string, a value with whitespace, a
scheme other thanhttp,https,socks4,socks4a,socks5and
socks5h, or a URL without a host. Before, an empty string meant no proxy,
a non-string value raised aTypeError, and other such values were passed
to cURL so that every request failed with aConnectionException. A
host:portwithout a scheme is still accepted and used ashttp.
Remove an emptyproxyoption or pass a valid proxy URL. - Breaking: added
TranslationMemoryJobException, aDeepLExceptionwith an
optionaljobIdandjob.importTranslationMemoryFromFilepath()and
exportTranslationMemoryToFilepath()wrap every failure in it, except a
missing input file, which still throws\InvalidArgumentException
unwrapped. Wrapped failures include invalid options, an empty or unreadable
input file, an existing or unwritable output path, a failed job creation,
upload or download, and a job that fails, expires or times out.jobIdis
set as soon as the job was created;jobis the lastTranslationMemoryJob
status the helper fetched,nullbefore the first status check; both are
nullfor a failure before the job was created.httpStatusCodeand
shouldRetryare copied from aDeepLExceptioncause, whichgetPrevious()
returns. Code that catchesDeepLExceptionstill catches it; code that
catches a subclass such asNotFoundExceptionor\InvalidArgumentException
from these two functions must catchTranslationMemoryJobExceptionand checkgetPrevious(). rephraseText()andcorrectText()throw anInvalidContentException
(aDeepLException) if an improvement in the response lacks
detected_source_languageortarget_language, instead of a plain
DeepLException.- Breaking: the
DeepLClientandDeepLAdminClientconstructors throw an
\InvalidArgumentException(Unknown client option: <key>) for an option
key that is not aTranslatorOptionsconstant, instead of logging a warning
and ignoring it.
Remove option keys that are notTranslatorOptionsconstants. - Breaking:
DeepLAdminClient::setDeveloperKeyUsageLimits()throws an
\InvalidArgumentException(Unknown developer key usage limit: <key>)
before the request for a key of the limits array other than the
DeveloperKeyUsageLimitsOptionsconstants,'key_id'included, instead of
sending it as given (or dropping'key_id'). Send other fields with
DeveloperKeyOptions::EXTRA_BODY_PARAMETERS. - Breaking:
translateDocumentWaitUntilDone()accepts only
TranslateDocumentOptions::TIMEOUTand throws an\InvalidArgumentException
(Unknown translate document wait option: <key>) for any other key, such as
FORMALITY, instead of accepting and ignoring every
TranslateDocumentOptionskey.
Pass onlyTIMEOUT. - Breaking:
translateDocumentWaitUntilDone()treats a negativetimeoutas
expired: it requests the status once and throws the timeoutDeepLException
if the translation is not done, instead of throwing aDeepLException
(timeout must be a non-negative number of seconds) before any request. ThroughtranslateDocument()
this is aDocumentTranslationExceptionwith the handle set.
Pass a timeout of 0 or more. - Breaking: the second parameter of
waitUntilTranslationMemoryJobDone()and
the third parameter ofexportTranslationMemoryToFilepath()are named
$optionsinstead of$timeout. They still take the timeout in seconds or
[WaitOptions::TIMEOUT => seconds]. Replace the PHP 8 named argument
timeout: 300withoptions: 300, or pass it positionally. - Breaking: the second parameter of
importTranslationMemoryFromFilepath()and
the third parameter ofcreateTranslationMemoryImport()are named
$optionsinstead of$displayNameand$contentType; replace the named
argumentsdisplayName:andcontentType:withoptions:, or pass the
value positionally. - Breaking:
importTranslationMemoryFromFilepath()no longer has the third
parameter$timeout. Replace
importTranslationMemoryFromFilepath($file, 'Legal TM', 300)with
importTranslationMemoryFromFilepath($file, [ImportTranslationMemoryOptions::DISPLAY_NAME => 'Legal TM', ImportTranslationMemoryOptions::TIMEOUT => 300]).
A third argument throws aTranslationMemoryJobExceptionwhose previous
exception is an\InvalidArgumentException, before any request. - Breaking: the style rule functions that take a
StyleRuleInfo, the
translation memory functions that take aTranslationMemoryInfoor
TranslationMemoryJob, throw an\InvalidArgumentExceptionfor an object,
ornull, without an ID, before any request is sent. They threw a
\TypeErrorbefore. TheGLOSSARY,GLOSSARY_IDS,STYLE_RULE,
STYLE_PROFILEandTRANSLATION_MEMORYoptions of the translate and
document functions throw it for an empty ID or an object without an ID
instead of sending it.getGlossaryId(),getSpokenTermsId()and
getStyleProfileId()no longer raise a PHP warning fornull.
exportTranslationMemoryToFilepath()throws a
TranslationMemoryJobExceptionwhose previous exception is the
\InvalidArgumentException. Catch\InvalidArgumentExceptioninstead of
\TypeError. - Breaking: an empty language code throws an
\InvalidArgumentExceptionbefore
any request is sent, instead of being sent to the API: thesourceLangand
targetLangofMultilingualGlossaryDictionaryEntries(when it is created
and when it is sent),createMultilingualGlossaryFromCsv(),
updateMultilingualGlossaryDictionaryFromCsv(),
replaceMultilingualGlossaryDictionaryFromCsv()and
getMultilingualGlossaryDictionaryEntries(); thelangof
SpokenTermsEntries,getSpokenTermsEntries()anddeleteSpokenTermsList();
thesource_languageof the custom instructions passed to
createStyleRule(), and the$sourceLanguageof
createStyleRuleCustomInstruction()andupdateStyleRuleCustomInstruction()
(nullstill means not set). A spoken terms response withoutlangthrows an
InvalidContentException. Catch\InvalidArgumentExceptionwhere you handled
the API's error for an empty language code. - Breaking:
translateText(),rephraseText()andcorrectText()send a text
that is not a string as given; only an empty string is rejected.
translation_memory_thresholdis only checked to be between 0 and 100, so
'80'is sent. Aglossary_idsentry,style_rule,style_profileor
translation_memorythat is neither an ID nor its object throws the empty-ID
\InvalidArgumentException.translateDocumentWaitUntilDone()and
translateDocument()no longer reject atimeoutthat is not a number before
the request; PHP raises its own error when it is used.
Pass texts as strings and option IDs as strings or their objects. - Breaking:
getLanguagesForResource()no longer checks that theINCLUDE
option is an array before the request; pass an array of include values. The
style profile ID lists convert an entry that is not an ID or one of the
expected objects to a string instead of throwing (PHP raises anErrorif it
cannot be converted).getUsageAnalytics()andgetCustomTagUsageAnalytics()
raise PHP'sTypeErrorfor a date that is neither aDateTimeInterfacenor a
string.
PassINCLUDEas an array. - Breaking: every optional
$optionsparameter ofDeepLClientand
DeepLAdminClient, the constructors' included, and the$contentTypeof
uploadTranslationMemoryFile()acceptnull, meaning not given, instead of
raising aTypeError. Subclasses that override these methods must declare
?array $options = null(?string $contentType = null). Anulltimeout
orproxyclient option withhttp_clientno longer logs the 'is ignored'
warning. - Breaking:
TranslatorOptions::isValid()no longer returns[secure]or logs a
warning for an unknown option key, because the constructors throw for it
first, andHttpClientWrapperno longer has a destructor. - The Composer package no longer contains
renovate.json5.
Removed
- Breaking: Removed
Usage::$documentandUsage::$teamDocument, and their lines in
the string form ofUsage; the API no longer returns them.document_*
andteam_document_*fields in a response are ignored.
Remove code that reads them. - Breaking: Removed
DeepLClient::getMultilingualGlossaryEntries(). Call
getMultilingualGlossaryDictionaryEntries()with the same arguments; it
returns theMultilingualGlossaryDictionaryEntriesinstead of a one-element
array. - Breaking: Removed
TranslateTextOptions::STYLE_IDand
TranslateTextOptions::TRANSLATION_MEMORY_ID(style_id,
translation_memory_id). UseSTYLE_RULEandTRANSLATION_MEMORY, which
take the same values. - Breaking: Removed
TranslateDocumentOptions::STYLE_IDand
TranslateDocumentOptions::TRANSLATION_MEMORY_ID. UseSTYLE_RULEand
TRANSLATION_MEMORY. - Breaking: Removed the document translation step methods
uploadDocument(),
getDocumentStatus(),downloadDocument()and
waitUntilDocumentTranslationComplete(). UsetranslateDocumentUpload(),
translateDocumentGetStatus(),translateDocumentDownload()and
translateDocumentWaitUntilDone().translateDocument()no longer calls
subclass overrides of the removed methods; override the new ones instead. - Breaking: Removed document minification: the
enable_document_minificationoption
(TranslateDocumentOptions::ENABLE_DOCUMENT_MINIFICATION) and the classes
DocumentMinifier,DocumentMinificationExceptionand
DocumentDeminificationException. The DeepL API accepts larger documents;
drop the option and upload the document unchanged. - Breaking: Removed
GlossaryNotFoundException. CatchNotFoundException. - Breaking: Removed
TranslationMemoryJobResult::STATUS_DOWNLOADED.'downloaded'is
not a job status the API reports;waitUntilTranslationMemoryJobDone()no
longer counts it as finished and keeps polling, like any unknown status. Use
TranslationMemoryJobStatus::COMPLETED. - Breaking: Removed the
Translatorclass. Its methods, theVERSIONconstant and
the constructor moved intoDeepLClient, which no longer extends it.
Replacenew Translator(...)withnew DeepLClient(...)(same arguments),
andTranslatortype hints,instanceofchecks,Translator::VERSIONand
Translator::isFreeAccountAuthKey()withDeepLClient. Subclasses of
TranslatorextendDeepLClientinstead.TranslatorOptionsremains. - Breaking: Removed the
ConfiguredRulesclass.StyleRuleInfo::$configuredRulesis
a plain array; see Changed. - Breaking: Removed
Translator::isAuthKeyFreeAccount(). UseisFreeAccountAuthKey(),
which also trims whitespace around the key. - Breaking: Removed the constants
LanguageResource::RESOURCE_*and
LanguageSupport::INCLUDE_BETA/INCLUDE_EXTERNAL. Use the
LanguageResourceNameandLanguageIncludeconstants of the same names
without the prefix, for exampleLanguageResourceName::TRANSLATE_TEXT. - Breaking: Removed the language code constants of
LanguageCode, for example
LanguageCode::GERMAN. Pass the language code string, for example'de',
and usegetLanguagesForResource(),getSourceLanguages()or
getTargetLanguages()to list the supported languages.
LanguageCode::standardizeLanguageCode()andremoveRegionalVariant()
remain.
Fixed
- Every function that sends a JSON request body, such as
translateText(),
throws an\InvalidArgumentException(Failed to JSON-encode the request body: ...) before any request when a value cannot be JSON-encoded (invalid
UTF-8, INF/NAN), instead of sending an empty body that the API rejects. - The
DeepLClientandDeepLAdminClientconstructors throw an
\InvalidArgumentExceptionfor aserver_urloption that is not an absolute
httporhttpsURL with a host, such asapi.deepl.comwithout a scheme,
instead of failing on the first request. translateDocumentUpload()andtranslateDocument()remove the field for a
nullvalue inextra_body_parameters, including a field of the same name
the library sets, instead of sending it as an empty string.updateMultilingualGlossaryDictionaryFromCsv()and
replaceMultilingualGlossaryDictionaryFromCsv()throw an
\InvalidArgumentException(csvContent must be a non-empty string) before
any request for empty or whitespace-only CSV content, instead of sending it.translateText(),rephraseText()andcorrectText()send an array of texts
whose keys are not0..n-1(e.g. anarray_filter()result) as a JSON list
instead of a JSON object.- The
splitting_tags,non_splitting_tags,ignore_tagsand
custom_instructionsoptions oftranslateText()and the custom
instructions ofcreateStyleRule()are sent as JSON lists when the array
keys are not0..n-1. createTranslationMemoryExport()(andexportTranslationMemoryToFilepath())
send the export request with an empty body and noContent-Typeover the
built-in cURL transport, instead of an empty chunked body with
Content-Type: application/x-www-form-urlencodedandExpect: 100-continue.