mirror of
				https://github.com/LibreTranslate/LibreTranslate.git
				synced 2025-11-04 03:27:14 -05:00 
			
		
		
		
	Merge pull request #11 from andrewkdinh/main
Add missing bracket in API request example
This commit is contained in:
		
						commit
						9bf3eabb6e
					
				@ -23,7 +23,7 @@ const res = await fetch("https://libretranslate.com/translate", {
 | 
				
			|||||||
		target: "es"
 | 
							target: "es"
 | 
				
			||||||
	}),
 | 
						}),
 | 
				
			||||||
	headers: {
 | 
						headers: {
 | 
				
			||||||
		"Content-Type": "application/json"
 | 
							"Content-Type": "application/json"}
 | 
				
			||||||
	});
 | 
						});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
console.log(await res.json());
 | 
					console.log(await res.json());
 | 
				
			||||||
 | 
				
			|||||||
@ -345,7 +345,7 @@ document.addEventListener('DOMContentLoaded', function(){
 | 
				
			|||||||
'		target: "' + this.$options.filters.escape(this.targetLang) + '"',
 | 
					'		target: "' + this.$options.filters.escape(this.targetLang) + '"',
 | 
				
			||||||
'	}),',
 | 
					'	}),',
 | 
				
			||||||
'	headers: {',
 | 
					'	headers: {',
 | 
				
			||||||
'		"Content-Type": "application/json"',
 | 
					'		"Content-Type": "application/json"}',
 | 
				
			||||||
'	});',
 | 
					'	});',
 | 
				
			||||||
'',
 | 
					'',
 | 
				
			||||||
'console.log(await res.json());'].join("\n");
 | 
					'console.log(await res.json());'].join("\n");
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user