You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+63-79Lines changed: 63 additions & 79 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,215 +5,201 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
7
7
## [Unreleased]
8
-
9
8
### Added
10
-
* Added `extraRequestParameters` option to text and document translation methods to pass arbitrary parameters in the request body. This can be used to access beta features or override built-in parameters (such as `target_lang`, `source_lang`, etc.).
9
+
- Added `extraRequestParameters` option to text and document translation methods to pass arbitrary parameters in the request body. This can be used to access beta features or override built-in parameters (such as `target_lang`, `source_lang`, etc.).
11
10
12
11
## [1.12.0] - 2025-04-25
13
12
### Added
14
-
* Added support for the /v3 Multilingual Glossary APIs in the client library
15
-
while providing backwards compatability for the previous /v2 Glossary
16
-
endpoints. Please refer to the README or
13
+
- Added support for the /v3 Multilingual Glossary APIs in the client library
14
+
while providing backwards compatability for the previous /v2 Glossary
* New language available: Arabic (`'ar'`). Add language code constants and tests.
83
+
- New language available: Arabic (`'ar'`). Add language code constants and tests.
91
84
Arabic is currently supported only for text translation; document translation
92
85
support for Arabic is coming soon.
93
86
94
87
Note: older library versions also support the new language, this update only adds new code constants.
88
+
95
89
### Fixed
96
-
* Improve type of `translateText` function in `Translator`
90
+
- Improve type of `translateText` function in `Translator`
97
91
* Thanks to [VincentLanglet](https://github.com/VincentLanglet) for [#41](https://github.com/DeepLcom/deepl-php/pull/41)
98
92
99
-
100
93
## [1.6.0] - 2023-11-03
101
94
### Added
102
-
* Add optional `context` parameter for text translation, that specifies
95
+
- Add optional `context` parameter for text translation, that specifies
103
96
additional context to influence translations, that is not translated itself.
104
-
### Changed
105
-
* Added notice in Readme that starting in 2024 the library will drop support for PHP versions that are officially end-of-life.
106
97
98
+
### Changed
99
+
- Added notice in Readme that starting in 2024 the library will drop support for PHP versions that are officially end-of-life.
107
100
108
101
## [1.5.1] - 2023-09-11
109
102
### Fixed
110
-
* Add `.gitattributes` file to exclude irrelevant files from package download.
103
+
- Add `.gitattributes` file to exclude irrelevant files from package download.
111
104
* Thanks to [VincentLanglet](https://github.com/VincentLanglet) for [#30](https://github.com/DeepLcom/deepl-php/pull/30)
112
-
* Internal CI improvements.
113
-
105
+
- Internal CI improvements.
114
106
115
107
## [1.5.0] - 2023-06-26
116
108
### Added
117
-
* Allow users to supply their own custom HTTP client to the `Translator` object, in order to configure timeouts, security features etc more granularly.
109
+
- Allow users to supply their own custom HTTP client to the `Translator` object, in order to configure timeouts, security features etc more granularly.
118
110
* Thanks to [VincentLanglet](https://github.com/VincentLanglet) for the good input and work in [#22](https://github.com/DeepLcom/deepl-php/pull/22)
119
-
* Add curl version to the platform info in the user-agent header (will not be added if the user opts out).
111
+
- Add curl version to the platform info in the user-agent header (will not be added if the user opts out).
112
+
120
113
### Fixed
121
-
* Allow users to translate empty strings without throwing an error.
114
+
- Allow users to translate empty strings without throwing an error.
122
115
* Thanks to [VincentLanglet](https://github.com/VincentLanglet) for the work in [#24](https://github.com/DeepLcom/deepl-php/pull/24)
123
-
* Catch any exception thrown when computing the user-agent header and continue without failing the request.
124
-
116
+
- Catch any exception thrown when computing the user-agent header and continue without failing the request.
125
117
126
118
## [1.4.0] - 2023-05-24
127
119
### Added
128
-
* Script to check our source code for license headers and a step for them in the CI.
129
-
* Added platform and node version information to the user-agent string that is sent with API calls, along with an opt-out.
130
-
* Add method for applications that use this library to identify themselves in API requests they make.
131
-
### Fixed
132
-
* Fix getUsage request to be a HTTP GET request, not POST.
133
-
* Changed document translation to poll the server every 5 seconds. This should greatly reduce observed document translation processing time.
120
+
- Script to check our source code for license headers and a step for them in the CI.
121
+
- Added platform and node version information to the user-agent string that is sent with API calls, along with an opt-out.
122
+
- Add method for applications that use this library to identify themselves in API requests they make.
134
123
124
+
### Fixed
125
+
- Fix getUsage request to be a HTTP GET request, not POST.
126
+
- Changed document translation to poll the server every 5 seconds. This should greatly reduce observed document translation processing time.
135
127
136
128
## [1.3.0] - 2023-01-26
137
129
### Added
138
-
* New languages available: Korean (`'ko'`) and Norwegian (bokmål) (`'nb'`). Add language code constants and tests.
130
+
- New languages available: Korean (`'ko'`) and Norwegian (bokmål) (`'nb'`). Add language code constants and tests.
139
131
140
132
Note: older library versions also support the new languages, this update only adds new code constants.
141
133
142
-
143
134
## [1.2.1] - 2023-01-25
144
135
### Fixed
145
-
* Also send options in API requests even if they are default values.
146
-
136
+
- Also send options in API requests even if they are default values.
147
137
148
138
## [1.2.0] - 2022-11-11
149
139
### Changed
150
-
* Added dependency on `psr/log`. As this package forms a PHP Standard
140
+
- Added dependency on `psr/log`. As this package forms a PHP Standard
151
141
Recommendation, we don't consider it to break backward-compatibility.
142
+
152
143
### Fixed
153
-
* Change the type of the `TranslatorOptions::LOGGER` option to
144
+
- Change the type of the `TranslatorOptions::LOGGER` option to
154
145
`Psr\Log\LoggerInterface`, to correctly support PSR-3 loggers.
0 commit comments