25 |
26 | Translateer
27 |
28 |
29 | A free Google Translate API using Puppeteer.30 | 31 |
Usage
32 | 33 |Parameters
34 || Name | 38 |Type | 39 |Description | 40 |Default | 41 |
|---|---|---|---|
| text | 46 |string | 47 |The text to translate. | 48 |[Required] | 49 |
| from | 52 |string | 53 |The language code of the source text. | 54 |auto |
55 |
| to | 58 |string | 59 |The language code of the target text. | 60 |zh-CN |
61 |
| lite | 64 |boolean | 65 |
66 | If true, only return result for the translated text.
67 | |
68 | false |
69 |
74 | The language code is in ISO-639-1 format. See all available code listed 75 | 80 | here. 81 |82 | 83 |
Example Response
84 |Disclaimer
93 | 94 |-
95 |
- 96 | This service is not provided by the official Google Translate. It is 97 | provided as a service to the public for 98 | educational purposes only. 99 | 100 |
- 101 | This service has no guarantee that the translation will be accurate. 102 | The service is not responsible for any errors or omissions. The 103 | service is provided as is and 104 | without warranty. 105 | 106 |
- You can also self-host this service. See the source code below. 107 |
Source Code
110 |111 | GitHub: 112 | 113 | songkeys/translateer 114 | 115 |
116 | 117 |Sponsor
118 |119 | If you find this project useful, please consider sponsoring me. It will 120 | be used to maintain the service and improve the quality. 121 |
122 | 129 |