forked from 5gi/DeepJ
		
	Update 'src/main/java/com/the5gi/DeepJ/Translator.java'
This commit is contained in:
		
							parent
							
								
									c00f4b1a2d
								
							
						
					
					
						commit
						0e35a2f4c8
					
				@ -52,6 +52,9 @@ instead of "new Translator(String authKey)". NOTE: This will work but just some
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
        request = new Request(authKey);
 | 
					        request = new Request(authKey);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					    public void setAPIKey(String authKey) {
 | 
				
			||||||
 | 
					        request = new Request(authKey);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
    public String translate(Language langToTranslateTo, String sourceMessage) {
 | 
					    public String translate(Language langToTranslateTo, String sourceMessage) {
 | 
				
			||||||
        String response = "Error processing request";
 | 
					        String response = "Error processing request";
 | 
				
			||||||
        try {
 | 
					        try {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user